[R] RES: Multiple XY Lines Plot

Rodrigo Aluizio r.aluizio at gmail.com
Tue Nov 11 20:11:05 CET 2008


Philipp you actually solved my problem when you mentioned matplot function.
I hadn't read anything about it before, when you mentioned I searched and
I'm getting what I need, now it's just a question of minor adjustments.

Below is a simple solution that I will now improve.

matplot(Perfil$3.W,Perfil$2.H,type='n',xlab='Length',ylab='Height')
lines(Perfil$1.W,Perfil$1.H,lty='solid')
lines(Perfil$2.W,Perfil$2.H,lty='dotted')
lines(Perfil$3.W,Perfil$3.H,lty='dashed')
lines(Perfil$4.W,Perfil$4.H,lty='dotdash')

Thank you!

-----Mensagem original-----
De: r-help-bounces em r-project.org [mailto:r-help-bounces em r-project.org] Em
nome de Philipp Pagel
Enviada em: terça-feira, 11 de novembro de 2008 16:16
Para: r-help em r-project.org
Assunto: Re: [R] Multiple XY Lines Plot

> Hi list, I?m trying to plot lines in the same graphic. There are lots of
> similar topic on the list history. I?ve read about xyplot (lattice) and
> other ways to do that but I only got complex error messages, and wasn?t
able
> even to start a decent R scrip.

There are several ways to plot multiple lines and/or points in
one plot. xyplot, lines, points, matplot etc. come to mind.
Depending on the organization of your data, some of these will be
easier than others. As you didn't say anything about your data
structure, the commands you tried and the errors you encountered,
it is hard to be more specific at this point. Please give us a
short example to work with and I'm sure you'll get the answer you
need.

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel

______________________________________________
R-help em 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