Description Usage Arguments Details Author(s) Examples
Create a scatter plot by group.
1 2 |
dat |
A matrix or data frame to be plotted. |
group |
A factor or vector giving group information of columns of
|
col |
A strings of colors recognized by the |
pch |
A vector of symbol values recognized by the |
cex |
Size of symbols. |
legend.loc |
Position of legend. The location should be one of |
... |
Additional graphics parameters passed to |
The scatter plot is by columns of dat
. If legend.loc
is mousepoint
,
legend will be located by the mouse point.
Wanchang Lin wll@aber.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(iris)
grpplot(iris[,1:2], iris[,5],main="IRIS DATA",legend.loc="topleft")
## color values for the group and symbol size
grpplot(iris[,1:2], iris[,5],main="IRIS DATA",col=c(4,5,6),cex=1.2,
legend.loc="topright")
## color and symbols for the group. legend location
grpplot(iris[,c(1,3)], iris[,5], col=c("red", "green3", "blue"),
pch=c(15,16,17), main="IRIS DATA",legend.loc="topleft")
## plot vector
grpplot(iris[,3], iris[,5],main="IRIS DATA",legend.loc="top")
## pairs plot.
grpplot(iris, iris[,5],main="IRIS DATA")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.