This is a demonstration showing how to make your first plot using R, Rstudio, and ggplot.

Steps:

ggplot(gapminder, aes(x = gdpPercap, y = lifeExp)) + geom_point()

ggplot(gapminder, aes(y = gdpPercap, x = lifeExp)) + geom_point()

Refine your plot:

ggplot(gapminder, aes(y = gdpPercap, 
                      x = lifeExp)) + 
  geom_point() +
  labs(x = "GDP per capita (US$, inflation adjusted",
       y = "Life expectancy (years, at birth)",
       title = "Life expectancy varies with national income",
       subtitle = "Something more here",
       caption = "Source: gapminder")

ggplot(gapminder, aes(y = gdpPercap, 
                      x = lifeExp,
                      color = continent),
       ) + 
  geom_point() +
  labs(y = "GDP per capita (US$, inflation adjusted",
       x = "Life expectancy (years, at birth)",
       title = "Life expectancy varies with national income",
       subtitle = "Something more here",
       caption = "Source: gapminder")

ggplot(gapminder, aes(y = gdpPercap, 
                      x = lifeExp,
                      color = continent),
       ) + 
  geom_point() +
  labs(y = "GDP per capita (US$, inflation adjusted",
       x = "Life expectancy (years, at birth)",
       title = "Life expectancy varies with national income",
       subtitle = "Something more here",
       caption = "Source: gapminder") +
  scale_y_log10() +
  theme(text = element_text(size=14))

Repeat:

Refer to the slides for this lesson for more ideas and examples.