x轴用斜体标示 [英] Labels in italics for x axis

查看:156
本文介绍了x轴用斜体标示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



 <$> 


物种,
等级= c(Gaur,Sambar,SpottedDeer,IndianMuntjac,WildBoar))


解决方案

改变 ggplot em> theme :

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


How to label words in italics for x axis?

Code:

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

解决方案

Change the looks of text in ggplot using theme:

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

这篇关于x轴用斜体标示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆