#How about this?

x1=6*(sin((0:100)*2*pi/100))+4
y1=6*(cos((0:100)*2*pi/100))+4
plot(x1,y1)
x2=c(1,9,3,4,8,4,2,0)
y2=c(3,6,8,2,4,1,9,6)
lines(x2,y2,type="b")

On Wed, Oct 29, 2008 at 2:48 PM, Alex99 <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> I am trying to have a connectivity graph (two plots at once) in R:
> this is an example:
>
> x1=sin((0:100)*2*pi/100)
> y1=cos((0:100)*2*pi/100)
>  plot(x1,y1)
>
> will draw a circle and
>
> x2=c(1,9,3,4,8,4,2,0)
> y2=c(3,6,8,2,4,1,9,6)
> plot(x2,y2,type="b")
>
> will draw a graph with corresponding x's and y's and connects the point.
>
> I want to have a circle with these points connected to each other inside the
> circle. is it possible to do it in R?
>
> Thanks
> --
> View this message in context: 
> http://www.nabble.com/Help-with-Plots-tp20233489p20233489.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>



-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

                                                                -K. Mullis

______________________________________________
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.

Reply via email to