[R] Seeking advice on lattice package in R2.4.0 concerning stripplot

From: Dr L. Y Hin <lyhin_at_netvigator.com>
Date: Sat 16 Dec 2006 - 01:22:15 GMT


Dear all,

I am using the R 2.4.0 environment on Windows XP SP2 machine and trying to use the lattice package version 0.14-9 which you have kindly written to share with the R community.

I have a question concerning the stripplot which I'd be very grateful if you can kindly advise me on:

I used the dataset called trydata to plot a graph using stripplot (dataset attached), and the scripts used to procude the plot is as follows:

trydata<-dget("trydata")
stripplot(Position~Count|y*Grouping,jitter=T,group=subtype, data=trydata,xlab="Count rate (%)",
pch=c(0,3,6,5),
key=list(text=list(c("GS in front", "GS at the back",
"MS in front","MS at the back")),

points = Rows(trellis.par.get("superpose.symbol"),1:4), columns=2))

When I plotted the graph and viewed it on R, the legend and the datapoint shapes are correct. However, when I export it into .pdf form using the pulldown menu in R, the legend for
"GS in front" is incorrect.

Instead if being a prism, it became
a circle. How can I get around this?
I've attached the figure thus generated in pdf form for your kind consideration.

Specifically, how can I modify the specifications in the command to produce the correct pch type in the legend as in the chart itself?

Thank you very much in advance for your kind advice.

Best
Lin



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Sat Dec 16 12:27:49 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 17 Dec 2006 - 01:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.