Sagarika Phalke
Sagarika Phalke

Reputation: 61

Labels in italics for x axis

How to label words in italics for x axis?

Code:

nr$species <- factor(nr$species,
                     levels=c( "Gaur", "Sambar", "SpottedDeer", "IndianMuntjac", "WildBoar"))

Upvotes: 6

Views: 13423

Answers (1)

Robin Gertenbach
Robin Gertenbach

Reputation: 10806

Change the looks of text in ggplot using theme:

+ theme(axis.text.x = element_text(face = "italic"))

Upvotes: 10

Related Questions