TPMplt (version 0.1.0)

SSplots: Automatic completion for Stress-Strain plots

Description

Automatic completion for Stress-Strain plots

Usage

SSplots(x, grpby, manual = NULL, legendscale = 0.7, ...)

Arguments

x

A data frame with VBTree style. Pay attention, all factors in column names should be separated by "-" symbol, and factors for temperatures and strain rates should be saved in pure numeric style.

grpby

Layer for variables to be grouped.

manual

A positive integer vector with length 3. The first value is layer for Stress and Strain, the sencond value is for Strain's level in this layer, and the third is Stress's level. Default setting is NULL, to call lyIDdetector automatically fill this argument.

legendscale

A positive value to determine the scale of legend. Default value is 0.7

...

Arguments be passed to par for plots arrangements. mfrow and mfcol are recommanded.

Value

Multiple Stress-Strain plots according to specified group methods.

Examples

Run this code
# NOT RUN {
require(VBTree)
# Find locations for temperature and strain rate:
# temperature in layer2, strain rate in layer3;
# Strain in layer1 level1, Stress in layer1 level2.
dl2vbt(chrvec2dl(colnames(TPMdata)))

# Attention: Zoom your Plots panes large enough to ensure
# correct output!

# Plot multiple Stress-Strain curves, grouped by strain rate:
SSplots(TPMdata, 3, mfrow=c(3, 3))

# Plot multiple Stress-Strain curves, grouped by temperature:
SSplots(TPMdata, 2, mfrow=c(2, 2))

# Manual setting, for Stress-Stain plots:
SSplots(TPMdata, 2, manual=c(1, 1, 2), mfrow=c(2, 2))
# }

Run the code above in your browser using DataCamp Workspace