[R] how to make point character thicker in the legend of xyplot?

array chip arrayprofile at yahoo.com
Fri Sep 24 01:15:11 CEST 2010


Now I got point character thicker using panel.points(lwd=2), But I can't make it 
thicker in the legend of the plot. Here is an example:

xyplot(1:10~1:10,groups=rep(1:5,2),col=1:2,pch=0:1,type='p',cex=2,panel=panel.points,lwd=3,

key=list(x=0.7,y=0.2,corner=c(0,0),type='p',
points=list(col=1:2,pch=0:1,cex=2,lwd=2),
text=list(lab=c('A','B'),cex=1.5,font=2)))

Any suggestions?

Thanks

John



----- Original Message ----
From: array chip <arrayprofile at yahoo.com>
To: Greg Snow <Greg.Snow at imail.org>
Cc: r-help at r-project.org
Sent: Thu, September 23, 2010 4:03:00 PM
Subject: Re: [R] how to make point character thicker in xyplot?

Thank you Greg. I also got it work by using panel.points (lwd=2) instead of 
using panel.xyplot()






----- Original Message ----
From: Greg Snow <Greg.Snow at imail.org>
To: array chip <arrayprofile at yahoo.com>; "r-help at r-project.org" 
<r-help at r-project.org>
Sent: Thu, September 23, 2010 2:48:06 PM
Subject: RE: [R] how to make point character thicker in xyplot?

There is probably a simpler way, but if you want full customization, look at 
panel.my.symbols in the TeachingDemos package.

-----Original Message-----
From: array chip <arrayprofile at yahoo.com>
Sent: Thursday, September 23, 2010 2:52 PM
To: r-help at r-project.org <r-help at r-project.org>
Subject: [R] how to make point character thicker in xyplot?


Is there anyway to make plotting point character being thicker in xyplot? I mean
not larger which can achieved by "cex=2", but thicker. I tried lwd=2, but it
didn't work. I know "lwd" works in regular plot() not only for lines, but also
for points. For example

plot(1:10, lwd=2)

Thanks

John

______________________________________________
R-help at r-project.org 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.

______________________________________________
R-help at r-project.org 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.



More information about the R-help mailing list