Username
Username

Reputation: 3663

How do I style ggplot caption?

I have this ggplot chart

ggplot(
  data = cars,
  aes(
    x = dist,
    y = speed
  )
) +
  geom_point() +
  labs(
    caption = "Some caption"
  )

How do I change the color of the caption and make it italicized.

Upvotes: 0

Views: 1418

Answers (1)

dpseidel
dpseidel

Reputation: 301

Adjust it with + theme(plot.caption = element_text(color = "red", face="italic"))

Upvotes: 4

Related Questions