Description Usage Arguments Details Author(s) References See Also Examples
S3 method to plot SK
objects.
1 2 3 4 5 6 7 8 9 |
x |
A |
mean.type |
The type of mean must be ploted. O default is "line". |
xlab |
A label for the x axis. |
mean.col |
A vector of colors for the means representation. |
mean.pch |
A vector of plotting symbols or characters. Only if type are "point". |
mean.lwd |
Line width of mean. |
mean.lty |
Line type of mean. Only if type are "line". |
args.legend |
List of additional arguments to be passed to |
... |
Optional plotting parameters. |
The boxplot.SK
function is a S3 method to plot SK objetcs. The difference to generic function is the Scott & Knott inference under frame and the plot of means within box.
José Cláudio Faria (joseclaudio.faria@gmail.com)
Enio Jelihovschi (eniojelihovs@gmail.com)
Ivan Bezerra Allaman (ivanalaman@gmail.com)
Murrell, P. (2005) R Graphics. Chapman and Hall/CRC Press.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | ##
## Examples: Completely Randomized Design (CRD)
## More details: demo(package='SK')
##
library(ScottKnott)
data(CRD1)
## From: formula
# Simple!
sk1 <- SK(y ~ x,
data=CRD1$dfm,
which='x')
boxplot(sk1)
# A little more elaborate!
boxplot(sk1,
mean.lwd=1.3,
mean.col='red')
# A little more!
boxplot(sk1,
mean.lwd=1.3,
mean.lty=2,
mean.col='red',
args.legend=list(x='bottomleft'))
# With point type!
boxplot(sk1,
mean.type='point')
boxplot(sk1,
mean.type='point',
mean.pch=19,
cex=1.5,
mean.col='red')
# With other point
boxplot(sk1,
mean.type='point',
mean.pch='+',
cex=2,
mean.col='blue',
args.legend=list(x='bottomleft'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.