How about displaying R graphics in Rev?
It is trivial to put something like this in a field:
Code: Select all
r --vanilla
license()
demo(lm.glm)
xvar=c(10,20,30,40,50)
xvar
demo(graphics)
q()
Steve
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
r --vanilla
license()
demo(lm.glm)
xvar=c(10,20,30,40,50)
xvar
demo(graphics)
q()
Code: Select all
xvar=c(10,20,30,40,50,44,55,66,33,44)
mean(xvar)
yvar=c(2,2,3,8,9,3,4,8,6,7)
mean(yvar)
#plot a regression line
png(file="myplot.png")
#par(mfrow=c(2,2)) #put 4 graphs in one frame
plot(xvar,yvar)
abline(lm(yvar~xvar))
dev.off()
q()
Code: Select all
import paint from file "myplot.png"