Adjusting the second y axis on a pareto chart in R
问题 I have created two pareto charts in R, both using the same data. One using ggplots stat_pareto and the other with pareto.chart function from qcc library. ggplot(DT4, aes(x = reorder(sap_object_type_desc, -sum_duration), y = sum_duration)) + geom_bar(stat="identity") + theme(axis.text.x=element_text(angle=90,hjust=1)) + stat_pareto(point.color = "red", point.size = 2, line.color = "black", #size.line = 1, bars.fill = c("blue", "orange")) Or using pareto.chart function pareto.chart(avector,