I am working on a remote Linux server with R. I have made a plot in R using ggplot().
p <- ggplot(new_df) + geom_line(aes(x=dt, y=user_cnt))
However, when I want to view the plot as
>p
I get the following error: Error: is.integer(group) is not TRUE
Also when I want to save the plot to a file with the following code:
jpeg("myplot.jpg")
ggplot(new_df) + geom_line(aes(x=dt, y=user_cnt)
dev.off()
I still get the error: Error: is.integer(group) is not TRUE
This problem does not occur when I'm working with the RGui on Windows. How can I view/save my plot on the Linux server? I am connected from Windows 10 using PuTTy.