Skip to content
Prev 385346 / 398506 Next

Trouble getting labels for bars in Pareto Chart

Hi Paul,
I ran this:

library(qcc)
pareto.chart(dataset2$Points)

and like you, got the chart. As you have 140 long labels, I thought at
first it might be the function trying to abbreviate some of them and
actually displaying about 1 in 5. Looking at the code for the
function, this is not the case. You can get the labels (sort of) by
specifying a very wide graphic device and setting the names of the
input vector to dataset2$School:

dpoints<-dataset2$Points
pdf("qcc_dataset2.pdf",width=20,height=5)
names(dpoints)<-dataset2$School
pareto.chart(dpoints)
dev.off()

The attached image shows what I mean.

Jim
On Thu, Aug 20, 2020 at 7:27 AM Paul Bernal <paulbernal07 at gmail.com> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qcc_dataset2.pdf
Type: application/pdf
Size: 9274 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200820/ccdb61f2/attachment.pdf>