You are working with the penguins dataset. You create a scatterplot with the following lines of code: ggplot (data = penguins) + geom_point (mapping = aes (x = flipper_length_mn, y = body_mass_g)) + What code chunk do you add to the third line to save your plot as a pdf file with "penguins" as the file name? ggsave ("penguins.pdf") ggsave (=penguins) Oggsave ("pdf.penguins") Oggsave (penguins.pdf)

Respuesta :

To save your plot as a png file with "penguins" as the file name, add the code chunk ggsave("penguins. png").

Where can I create a scatter plot?

Data pairs with a suspected association should be collected. The independent variable should be plotted on the horizontal axis, and the dependent variable should be plotted on the vertical axis. Put a dot or a symbol where the x-axis value and the y-axis value intersect for each pair of data.

elements of a scatter plot are:

  • Analysis of X-Y (Scatter) Plots
  • The Headline Your graph's contents are briefly described in the title.
  • In The Legend. Every point's meaning is explained in the legend.
  • The Source Where you got the data for your graph is explained in the source.
  • The Data, X-Axis, and Y-Axis.

When you want to save your plot as a png file with the file name "penguins," you add the code chunk ggsave("penguins. png").

Therefore, the answer is  ggsave ("penguins.pdf").

To learn more about scatter plot refer to:

https://brainly.com/question/6592115

#SPJ4

ACCESS MORE