ggplot(data=penguins,aes(X=flipper_length_mm,y=body_mass_g))+
geom_point(aes(color=species)) +
facet_wrap(~species)
BELOW IS THE ERROR I AM HAVING
Error in geom_point():
! Problem while setting up geom.
Error occurred in the 1st layer.
Caused by error in compute_geom_1():
! geom_point() requires the following missing aesthetics: x
Run rlang::last_trace() to see where the error occurred.
CAN SOMEONE HELP TO RESOLVE THIS FOR ME. I AM NEW TO R.