我正在使用以下代码绘制条形图:
heights1=c(5,5,4.5,4)
barplot(heights1, main="Language ", names.arg=c("Hindi R/W", "Speak" , "English
R/W","Speak"), ylab=" level ", xlab="Language starting with mostly used",
cex.names=0.8, col=c("darkblue","red"))
输出如下:
但我想要的是“Hindi R/w”和“Speak”应该没有任何间隙地结合起来,然后出现一个空格,然后“English R/w”和“Speak”应该结合起来。我该怎么做呢?