LoslegenKostenlos loslegen

Customizing ggplot2 visualizations of ACS data

While the ggplot2 defaults are excellent for exploratory visualization of data, you'll likely want to customize your charts before sharing them with others. In this exercise, you'll customize your tidycensus dot plot by modifying the chart colors, tick labels, and axis labels. You'll also learn how to format labels using the scales package, as label formatters can be imported using the :: syntax.

Diese Übung ist Teil des Kurses

Analyzing US Census Data in R

Kurs anzeigen

Interaktive Übung

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

# Set dot color and size
g_color <- ___(ne_income, aes(x = estimate, y = reorder(NAME, estimate))) + 
  geom_point(color = ___, ___ = 4)
Code bearbeiten und ausführen