Labels are in italics for the x-axis

How do I put words in italics for the x-axis?

code:

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

      

+3


source to share


1 answer


Change the look of the text in ggplot with a theme:



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

      

+3


source







All Articles