Error: A continuous variable can not be mapped to shape

Viewed 6214
ggplot(penguins)+
   geom_point(mapping=aes(x=flipper_length_mm,y=body_mass_g,shape=year))

this is the code using palmerpenguins dataset and why it is not working? can someone help me out

Error: A continuous variable can not be mapped to shape

0 Answers
Related