Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread jlehm
This is it! :-) Thank's a million time for your help! Best, J -- View this message in context: http://r.789695.n4.nabble.com/plot-legend-in-filled-contour-plot-with-infinite-limits-tp4688905p4689012.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread Boris Steipe
On 2014-04-17, at 12:21 PM, jlehm wrote: > This is great!! Thank you so much!!! > > If have to admit, though, that this script is a bit too advanced for me as > that I could understand it. Most of it is the original code of the function :-) > But perhaps I could ask you for one more thing? >

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread jlehm
This is great!! Thank you so much!!! If have to admit, though, that this script is a bit too advanced for me as that I could understand it. But perhaps I could ask you for one more thing? If possible, I would like, if the triangles replaced the first and the last box of the legend, instead of be

Re: [R] plot legend in filled.contour plot with infinite limits

2014-04-17 Thread Boris Steipe
filled.contour() is written in R as a layout wrapper for .filled.contour(), which does the actual plotting. The code handles the construction of the key legend. I have added a parameter key.extend = FALSE to the function and I believe it does what you were asking for, judging from the incredibly

[R] plot legend in filled.contour plot with infinite limits

2014-04-16 Thread jlehm
Dear R-users, I would like to manipulate the legend bar of a filled.contour plot in the same way as it is done in the attached example I found on the web. So, in particular, I would like to limit my z-range and then have triangles at the

Re: [R] Plot Legend

2011-10-24 Thread R. Michael Weylandt
Glad to hear it worked for you. There does seem to be some confusion on your end as to what the with() command does, however. The following are all equivalent. data(mtcars) layout(matrix(1:4,2)) plot(mtcars$cyl, mtcars$mpg) plot(mtcars[["cyl"]], mtcars[["mpg"]]) plot(mtcars[,"cyl"], mtcars[,"mpg

Re: [R] Plot Legend

2011-10-24 Thread RMSOPS
Hello Michael, You were absolutely right, it was not the database mtcars I wanted to use. but the example you sent me helped me a lot. I took the code that I adapted to this and what I wanted and resulted in perfection. Thank you for your help. dataset *with (dataset, plot (dataset

Re: [R] Plot Legend

2011-10-24 Thread R. Michael Weylandt
Are you sure you are using the data set mtcars? That data set doesn't have variables Na or K nor does it look like what you provided... For the real mtcars, you could try this which I think does something like what you want. with(mtcars, plot(cyl, mpg, pch = carb, col = gear)) with(mtcars, legend

[R] Plot Legend

2011-10-24 Thread RMSOPS
Good Afternoon, I am inexperienced in data visualization R. so I wonder if someone can help me. I am using the generic database mtcars. I would like to change the chart plot, instead of appearing the name of the medicine, I wanted a symbol in the chart drugX arise for example in a yellow circle,

Re: [R] Plot legend

2009-04-11 Thread Jim Lemon
Sherri Heck wrote: Dear All- I am trying to create a legend where the first 9 terms are represented as pch=16 in one column (which I am able to do); but, I would like the last two terms in that column to be 'lines" (which are black and red - just as it looks like in the plot). I have read th

[R] Plot legend

2009-04-10 Thread Sherri Heck
Dear All- I am trying to create a legend where the first 9 terms are represented as pch=16 in one column (which I am able to do); but, I would like the last two terms in that column to be 'lines" (which are black and red - just as it looks like in the plot). I have read through many help pages