Problem with ggplot

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:


Thank you! But than I get this...
Schermafbeelding 2020-06-04 om 10.16.45

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:
ggplot(OV3_1) +
geom_point(aes(x = tijd, y = automot))

That is a ggpredict of a data.frame:

ggpredict(modelOV3_1, "tijd")
OV3_1 <- ggpredict(modelOV3_1, "tijd")
ggplot(OV3_1) +
geom_point(aes(x = "tijd", y = "automot")) + lines=sit_automsragg

But I still get an error


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:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.