我正在使用R内核在jupyter笔记本中使用ggplot / baseplot进行绘图(并且已加载软件包repr)。但是,不会显示任何文字/仅显示位置奇怪的f。知道原因是什么吗?
查看ggplot:
shell_command = "ls -l"
subprocess.call(shell_command.split())
正常的基本R图也是如此:
data("iris")
scatter <- ggplot(data=iris, aes(x = Sepal.Length, y = Sepal.Width))
scatter + geom_point(aes(color=Species, shape=Species)) +
xlab("Sepal Length") + ylab("Sepal Width") +
ggtitle("Sepal Length-Width")
options(repr.plot.width=4, repr.plot.height=3)
options(jupyter.plot_mimetypes = "image/svg+xml")
plot(iris$Sepal.Length, iris$Sepal.Width, main = "blabla")