xxxxxxxxxx
print(r.eval("""
svg(filename='Rplots.svg',width=6,height=6,onefile=TRUE,
pointsize=10,family='times',bg='steelblue',
antialias=c('default','none','gray','subpixel'))
t<-seq(0,2*pi,len=360)
f1<-(7+.9*cos(12*t))*(1+.05*cos(72*t))
f2<-(1+.05*cos(256*t))*(1+sin(t))
x<-f1*f2*cos(t); y<-f1*f2*sin(t)
for (i in 1:25){
plot(.04*i*x,.04*i*y,type='l',col=rgb(0,.04*i,0),
xlim=c(-11,11),ylim=c(-3,17),xlab='x',ylab='y',
fg='gray',col.axis='gray',col.lab='gray')
par(new=TRUE)}
grid(col='gray'); dev.off()"""))
No comments:
Post a Comment