Using plotnine Geoms

Using plotnine geoms

Using plotnine geoms

(billie
 >> ggplot(aes("energy", "valence"))
  + geom_point()
)

Using geom_label

(billie
 >> ggplot(aes("energy", "valence", label = "track_name"))
  + geom_label()
)

Using geom_text

(billie
 >> ggplot(aes("energy", "valence", label = "track_name"))
  + geom_text()
)

Combining geoms

(billie
 >> ggplot(aes("energy", "valence", label = "track_name"))
  + geom_text(nudge_y = .1)
  + geom_point()
)

More on geom options

Let’s practice!