如何通过ggplot

时间:2016-06-23 09:37:27

标签: r ggplot2 pareto-chart

我想在十分位标记我的X轴。我使用ggplot()作为我绘制的pareto图表,默认情况下,X轴标记为0,33,66,100%(或者可能是由于代码)。我已经使用过这段代码,但是我不知道在哪里编辑它来得到十分分数:

pareto<-ggplot(data=cummulative, 
           aes(x=seq(1,length(cummulative$Frequency)),y=Cum.Percent.,group=1)) + geom_line(colour="red", size=1) + theme_classic() + theme(axis.text.x = element_text(angle = 75, hjust = 1, size=8)) + labs(x="Customer",y="Product Share (%)") +ggtitle("Pareto Chart") +ylim(0,100.1)
print(pareto)

cummulative是数据框,附加的是图像。enter image description here

0 个答案:

没有答案