Thank's!

Using plot correctly solve the pb.


Le 27 nov. 2012 à 14:45, peter dalgaard a écrit :

> 
> On Nov 27, 2012, at 11:06 , Jean-Paul Marcel Vallée wrote:
> 
>> Dear R users,
>> 
>> When I draw a circle with R on my Mac, the line is not smooth at 0 and 180 
>> degree even when I am using a high number of point. Is there a way to 
>> improve this rendering in the quartz window?
>> 
>> Thank's
>> 
>> JPV
>> 
>> 
>> 
>> f2 <- function(x){
>> (1-x^2)^.5
>> }
>> 
>> x1min=-100000;
>> x1max=100000;
>> sf=100000;
>> 
>> plot(f2, (x1min:x1max)/sf, col="blue", ylim=range(-1,1))
> 
> Read the help page for plot.function (again?) and notice that its second 
> argument does not do what I think you think it does. Increasing the value of 
> n= might be more fruitful.
> 
> -- 
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: [email protected]  Priv: [email protected]
> 
> 
> 
> 
> 
> 
> 
> 

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to