LoslegenKostenlos loslegen

Size and symbol

To change the default size and shape of points on a scatterplot or boxplot, we pass the marker argument a list with the size and symbol arguments. As you have seen, changing the plotting symbol can make charts easier to read by addressing issues such as overplotting. Decreasing the size of points can also help overcome minor overplotting issues—just don't make the points hard to see!

Diese Übung ist Teil des Kurses

Interactive Data Visualization with plotly in R

Kurs anzeigen

Anleitung zur Übung

  • Change the plotting symbol to a diamond and decrease its size to 4.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Set the plotting symbol to diamond and the size to 4
plot_ly(data = vg2016, x = ~User_Score, y = ~Critic_Score) %>% 
	___(___ = ___(___ = ___, ____ = ___)) 
Code bearbeiten und ausführen