The plotting went okay, but I only can see a grey screen. What can I do?
You've told ggplot to start making a plot, but you haven't told ggplot what you want on that plot. You need to add something like
geom_point(aes(x=your_x_column_name, y=your_y_column_name)) to the plot for it to display data.
Perhaps this might help: https://r4ds.had.co.nz/data-visualisation.html
It's easier to help you if you copy your code as text not as screenshot!
Is OV3_1 your dataframe?
then it would be:
geom_point(aes(x = tijd, y = automot))
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
Thank you! But than I get this...
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
That is a ggpredict of a data.frame:
OV3_1 <- ggpredict(modelOV3_1, "tijd")
geom_point(aes(x = "tijd", y = "automot")) + lines=sit_automsragg
But I still get an error