Your tips heave been very helpful. I tried Plotrix package and it seems
to handle the job.
Thank you all for your help!
Gonçalo
baptiste auguie wrote:
geom_path in ggplot2 is another option, see two examples on this page:
http://had.co.nz/ggplot2/geom_path.html
HTH,
baptiste
2009/8/21 Jim Lemon <j...@bitwrit.com.au>:
Gonçalo Graça wrote:
Hi! I'm not experienced very experienced with R and i'm looking for a way
doing plots like in this example
http://www.mathworks.de/matlabcentral/fx_files/23566/2/color_line3.png,
which basically it is a 2d plot in which the 3rd dimension (variable) is
color coded. I have only seen elsewhere that it is possible to color code
dots in a scatter plot and I tried it with success although I I didn't find
a way of including the color bar has legend to the plot.
I wonder if any one can give me some hint on this.
Hi Goncalo,
Have a look at the color.scale.line, color.scale and smoothColor functions
in the plotrix package. See color.legend for the "color bar".
Jim
______________________________________________
R-help@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@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.