在jupyter中调用R代码
#加载包
%load_ext rpy2.ipython##运行R
%%R
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length,
y=Sepal.Width,
color=Species))+
geom_point()Last updated
#加载包
%load_ext rpy2.ipython##运行R
%%R
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length,
y=Sepal.Width,
color=Species))+
geom_point()Last updated