[R] overlap two graph
shescott at mail.med.upenn.edu
Thu Aug 6 17:37:47 CEST 2009
It really sounds like you want to use points(). Maybe I'm missing the
true question but ellipsePoints returns a 2 column matrix of point
coordinates so passing it's output to points() should plot those
points on whatever plot you currently have open (in this case the plot
of the previous ellipse). If you're looking for an alternative way to
do it, you could rbind the outputs together and then plot the whole
allPoints<-rbind(ellipsePoints(2,5, alpha = 30),ellipsePoints(2,5, alpha = 60))
Department of Microbiology
University of Pennsylvania
402B Johnson Pavilion
3610 Hamilton Walk
Philadelphia, PA 19104-6076
On Thu, Aug 6, 2009 at 3:15 AM, Hemavathi Ramulu<hema.ramulu at gmail.com> wrote:
> actually there are coding before
> plot(ellipsePoints(2,5, alpha = 30), asp=1) which i got it from this website
> It only can draw one ellipse,
> Now I want to know how to add more ellipse in same diagram?
> thank you.
> On Wed, Aug 5, 2009 at 9:53 PM, Scott Sherrill-Mix
> <shescott at mail.med.upenn.edu> wrote:
>> Did you try already try:
>> plot(ellipsePoints(2,5, alpha = 30), asp=1)
>> points(ellipsePoints(2,5, alpha = 60), asp=1,col='red')
>> Scott Sherrill-Mix
>> Department of Microbiology
>> University of Pennsylvania
>> 402B Johnson Pavilion
>> 3610 Hamilton Walk
>> Philadelphia, PA 19104-6076
>> On Wed, Aug 5, 2009 at 5:46 AM, Hemavathi Ramulu<hema.ramulu at gmail.com>
>> > Hi everyone,I need you all help.
>> > I want to create few image in same diagram.
>> > For example, I wan draw two ellipse in same diagram.
>> > plot(ellipsePoints(2,5, alpha = 60), asp=1)
>> > and
>> > plot(ellipsePoints(2,5, alpha = 30), asp=1)
>> > How to display both ellipse together? both is different in angle.
>> > Thank you.
>> > --
>> > Hemavathi Ramulu
>> > [[alternative HTML version deleted]]
>> > ______________________________________________
>> > R-help at 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.
> Hemavathi Ramulu
More information about the R-help