xxxxxxxxxx
print(r.eval("""
svg(filename='Rplots.svg',width=6,height=4,onefile=TRUE,
antialias=c('default','none','gray','subpixel'))
options(repr.plot.width=12,repr.plot.height=7)
par(mar=c(2,4,2,2))
m<-10; n<-100; data<-sample(1:m,n,replace=TRUE)
xmax<-round(1.2*max(table(data)))
pal<-colorRampPalette(
colors=c('firebrick','midnightblue'))(m)
barplot(sort(table(data)),horiz=TRUE,col=pal,ylab='',
las=1,main='R Countplot in Seconds',xlim=c(0,xmax))
dev.off()"""))
No comments:
Post a Comment