mvPlot | R Documentation |
Creates a plot for visualizing the relationships between a response variable and multiple factors.
mvPlot(
response,
fac1,
fac2,
fac3,
fac4,
sort = TRUE,
col,
pch,
labels = FALSE,
quantile = TRUE,
FUN = NA
)
response |
The values of the |
fac1 |
Vector providing factor 1 as shown in the example. |
fac2 |
Vector providing factor 1 as shown in the example. |
fac3 |
Optional vector providing factor 3 as shown in the example. |
fac4 |
Optional vector providing factor 4 as shown in the example. |
sort |
Logical value indicating whether the sequence of the factors given by |
col |
Graphical parameter. Vector containing numerical values or character strings giving the colors for the different factors. By default |
pch |
Graphical parameter. Vector containing numerical values or single characters giving plotting points for the different factors. See |
labels |
Logical value indicating whether the single points should be labels with the row-number of the |
quantile |
A logical value indicating whether the quanitiles (0.00135, 0.5 & 0.99865) should be visualized for the single groups. By default |
FUN |
An optional function to be used for calculation of |
mvPlot
returns an invisible list cointaining: a data.frame in which all plotted points are listed and the final plot. The option labels can be used to plot the row-numbers at the single points and to ease the identification.
#Example I
examp1 = expand.grid(c("Engine1","Engine2","Engine3"),c(10,20,30,40))
examp1 = as.data.frame(rbind(examp1, examp1, examp1))
examp1 = cbind(examp1, rnorm(36, 1, 0.02))
names(examp1) = c("factor1", "factor2", "response")
mvPlot(response = examp1[,3], fac1 = examp1[,2],fac2 = examp1[,1],sort=FALSE,FUN=mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.