symbol(df, type="star", colin=NULL, colout=NULL, colin2=NA, colout2=1, ssize=NULL, labels=0, labelsize=0.6, scheme=1, sortby=0, descending=FALSE, coorx=NULL, coory=NULL, lty=1, main=NULL, sub=NULL, xlab=NULL, ylab=NULL, add=FALSE, xlim=NULL, ylim=NULL, facew=0.5, faceh=0.5, eyes=0.5, eyed=0.5, mouthw=0.5, mouthc=0.5, brows=0.5, browp=0.5, nosel=0.5, nosew=0.5, ears=0.5, pupils=0.5, body=0.5, limb1=0.5, limb2=0.5, limb3=0.5, limb4=0.5, defcol=NA)
bar
, profile
, star
, sun
, polygon
, face
, stick
, icon
.1
=normal, 2
=left to right-right to left, 3
=spiral.TRUE
) or ascending (FALSE
) order of symbols.x
coordinates of symbols.y
coordinates of symbols.TRUE
add symbols to current plot.x
coordinates of plot.y
coordinates of plot.colin
and colout
) or with defined color (colin2
and colout2
). Symbols can be placed in plot depending on order (with three different schemes - sortby
and scheme
), depending on some variables or some derived coordinates (coorx
and coory
).
Chernoff faces can be defined by 12 variables, stick figures by 5 and color icons by 8.
data(iris)
symbol(iris)
symbol(iris,coorx=iris[,2],coory=iris[,3],colout=5)
symbol(iris,type="face",scheme=3,sortby=2,colin=5)
symbol(iris,type="stick",coorx=iris[,4],coory=iris[,3],colout=2)
Run the code above in your browser using DataLab