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.
___
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?
>
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
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
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
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
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
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
8 matches
Mail list logo