[R] Stripplot - multiple plotting characters
Philip.Tennant at nre.vic.gov.au
Mon Apr 2 11:03:18 CEST 2001
I'm using R 1.2.1 on Windows.
I can't understand how to set up two different plotting
characters within a stripplot graph. I would use plot(),
but I want to use the 'stacking' option in stripplot as the
overplotting is quite severe:
patch <- factor(rep(c("S", "M", "B"), c(7, 7, 7)))
struc <- c(4,6,6,8,8,8,12,4,6,6,6,8,10,10,6,6,6,8,8,8,8)
occur <- c(0,0,0,1,1,0,1,0,0,1,0,0,1,0,0,0,1,1,1,1,0)
woods <- data.frame(patch, struc, occur)
woods$sym <- woods$occur
woods$sym[woods$sym==1] <- 16 ; woods$sym[woods$sym==0] <- 1
stripplot(struc~patch, method = "stack", pch = as.integer(sym))
I wanted the above code to give both open and filled circles in the
plot. I thought pg.84 from V&R3 may help me, (with the associated 'R
Complements'), but I am unable to understand how to adapt it.
Will summarise for the list if responses come directly.
Many thanks in advance.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help