How can I use aplpack in http://www.sagenb.org/

asked 2013-03-25 10:10:41 +0100

Jaakko Seppälä gravatar image

I tried to plot statistics homework in sagenb and my home computer. I put

install.packages("aplpack", lib="/my/own/R-packages/")
library(aplpack)
bagplot(cbind(a_d,i_d),pch=16,cex=2)

But now I got an error

Traceback (click to the left of this block for traceback)
...
NameError: name 'install' is not defined

I'm using Ubuntu 12.10. How can I plot scatter plots or bagplots in Sage?

edit retag flag offensive close merge delete

Comments

You probably didn't use the drop down menu to change "sage" to "R". Also, for plots there are some things you may have to do to make sure the graphics show up, see the documentation.

kcrisman gravatar imagekcrisman ( 2013-03-25 10:37:39 +0100 )edit