Re: [R] help with ggplot legend specification

2013-11-04 Thread John Kane
(shape=21,colour=black) pl + theme(legend.key.size = unit(2, cm)) John Kane Kingston ON Canada -Original Message- From: mike.conk...@gfk.com Sent: Thu, 31 Oct 2013 21:08:02 +0100 To: r-help@r-project.org Subject: [R] help with ggplot legend specification I am creating

Re: [R] help with ggplot legend specification

2013-11-04 Thread Ista Zahn
+ theme(legend.key.size = unit(2, cm)) John Kane Kingston ON Canada -Original Message- From: mike.conk...@gfk.com Sent: Thu, 31 Oct 2013 21:08:02 +0100 To: r-help@r-project.org Subject: [R] help with ggplot legend specification I am creating a scatterplot with the following code

Re: [R] help with ggplot legend specification

2013-11-01 Thread Ista Zahn
You can override the legend aesthetics, e.g., ggplot(df,aes(x=Importance,y=Performance,fill=PBF,size=gapsize))+ geom_point(shape=21,colour=black)+ scale_size_area(max_size=pointsizefactor) + scale_fill_discrete(guide = guide_legend(override.aes = list(size = 4))) Best, Ista On Thu,

[R] help with ggplot legend specification

2013-10-31 Thread Conklin, Mike (GfK)
I am creating a scatterplot with the following code. pl-ggplot(df,aes(x=Importance,y=Performance,fill=PBF,size=gapsize))+ geom_point(shape=21,colour=black)+scale_size_area(max_size=pointsizefactor) points are plotted where the size of the point is related to a metric variable gapsize

Re: [R] Help in the legend()

2010-07-06 Thread Dennis Murphy
) legend(30, 0.0021, expression( c ( var(t^(3))-var(t^(2)), var(t^(2))-var(t^(1))), var(t^(3))-var(t^(1)) ) ), lty=c(1,2,5)). From: David Winsemius dwinsem...@comcast.net Cc: r-help@r-project.org Sent: Mon, July 5, 2010 9:43:19 PM Subject: Re: [R] Help

[R] Help in the legend()

2010-07-05 Thread Shant Ch
Hi R-users, I was plotting the differences of the variances of the three estimators- T^(1), T^(2), T^(3), ofcourse taking two at a time. I was using the expression() in the legend function in order to show which line correspond to which of the difference, but the following that I had used

Re: [R] Help in the legend()

2010-07-05 Thread David Winsemius
On Jul 5, 2010, at 8:06 PM, Shant Ch wrote: Hi R-users, I was plotting the differences of the variances of the three estimators- T^(1), T^(2), T^(3), ofcourse taking two at a time. I was using the expression() in the legend function in order to show which line correspond to which of the

Re: [R] Help in the legend()

2010-07-05 Thread Shant Ch
)) ) ), lty=c(1,2,5)). From: David Winsemius dwinsem...@comcast.net Cc: r-help@r-project.org Sent: Mon, July 5, 2010 9:43:19 PM Subject: Re: [R] Help in the legend() On Jul 5, 2010, at 8:06 PM, Shant Ch wrote: Hi R-users, I was plotting the differences

[R] Help needed with legend

2010-05-03 Thread Nish
Hello, I am new to R and need some help with the legend. How can I add a legend for two variables (in two columns) each having multiple values to be explained in the legend. For example: Var 1 Var 2 symbol - Higher symbol - Higher symbol - Avgsymbol

Re: [R] Help needed with legend

2010-05-03 Thread John Kane
: From: Nish nisha.mukte...@gmail.com Subject: [R] Help needed with legend To: r-help@r-project.org Received: Monday, May 3, 2010, 3:10 PM Hello, I am new to R and need some help with the legend. How can I add a legend for two variables (in two columns) each having multiple values

Re: [R] Help needed with legend

2010-05-03 Thread Thomas Stewart
Something like this? plot(0,0) legend.text-c(VAR 1,Higher,Average,Lower,VAR 2,Higher,Average,Lower) legend.pch=1:8 legend.col=c(0,1,1,1,0,1,1,1) legend(bottomright,legend=legend.text,pch=legend.pch,col=legend.col,ncol=2) -tgs On Mon, May 3, 2010 at 3:10 PM, Nish nisha.mukte...@gmail.com wrote:

Re: [R] Help needed with legend

2010-05-03 Thread Nish
Thank you. It works! -- View this message in context: http://r.789695.n4.nabble.com/Help-needed-with-legend-tp2124457p2124857.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Help with Plot/Legend

2009-01-13 Thread jimdare
Dear R-Users I have 2 questions: Firstly, If I create a matplot and legend for multiple vectors and then tag another vector on using matlines (e.g. a 'total' of all vectors), is there anyway to add the new line to the legend without recreating it? I have created the plot this way because I

Re: [R] Help with Plot/Legend

2009-01-13 Thread jim holtman
You can create your own dashed lines: lty The line type. Line types can either be specified as an integer (0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings blank, solid, dashed, dotted, dotdash, longdash, or twodash, where blank

Re: [R] Help with Plot/Legend

2009-01-13 Thread jimdare
Thanks Jim, What happens if I want one solid line and four custom lines (92,11,12,62). I tried c(10,92,11,12,62) and it said that you can't use 0's. I also tried: ownlines-c(92,11,12,62) lty=c(1,ownlines) which resulted in the same thing. jholtman wrote: You can create your own dashed