I get a warning message by the below code

  1. I get a warning message after the below code chunk saying "Removed 2 rows containing missing values (geom_point()). Can someone please tell me what is the issue in the code??

ggplot(data=penguins)+geom_point(mapping = aes(x=flopper_length_mm,y=body_mass_g))

There is no problem with the code. There are two rows in the data set where flipper_length_mm and body_mass_g have NA values and cannot be plotted. Try running


to see those rows.

1 Like

Thank you for the solution and appreciate it.
After the given code, It appears 2 NA rows!

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.