[R] Help With Graphs

Gábor Csárdi csardi.gabor at gmail.com
Sat Nov 8 14:33:58 CET 2008


Moreover, use 'symbols' to draw the circle, it is a better and simpler solution.

Gabor

On Fri, Nov 7, 2008 at 9:02 PM, Sarah Goslee <sarah.goslee at gmail.com> wrote:
> ?text
>
> On Fri, Nov 7, 2008 at 12:42 PM, Alex99 <loyola9988 at yahoo.com> wrote:
>>
>> Hi guys,
>>
>> I am truing to draw a circle and choose 10 points on the circle and put a
>> number from 1 to 10 above each point. I don't have a problem with drawing a
>> circle and choosing 10 points. my problem is with numbering . is it even
>> possible to put a number above each chosen point? if so any idea how to do
>> it?
>>
>> ps: the circle has red dots and the selected points are in black.
>>
>> here is my code:
>>
>> D=cos(2*pi*(0:9)/10)
>> C=sin(2*pi*(0:9)/10)
>>
>> x1=(sin((0:100)*2*pi/100))
>> y1=(cos((0:100)*2*pi/100))
>> plot(x1,y1,col="red")
>>
>> points(C,D)
>>
>> Thanks,
>> --
>> View this message in context: http://www.nabble.com/Help-With-Graphs-tp20385465p20385465.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>
> --
> Sarah Goslee
> http://www.functionaldiversity.org
>
> ______________________________________________
> 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.
>



-- 
Gabor Csardi <Gabor.Csardi at unil.ch>     UNIL DGM



More information about the R-help mailing list