When I create a plot in Jupyter using the ggplot2
R package, I get a link to the chart that says \"View PDF\" instead of the chart being presented inline.
There are currently some issues with producing ggplot2 outputs using the IRkermel. There is an open issue on GitHub about it. The only workaround at the moment appears to be using PDF, jpg, png outputs for your plots.
You can show the graphs inline with this option.
options(jupyter.plot_mimetypes = 'image/png')
You can also produce pdf files as you would regularly in R, e.g.
pdf("test.pdf")
ggplot(data.frame(a=rnorm(100,1,10)),aes(a))+geom_histogram()
dev.off()