[R] Trouble getting labels for bars in Pareto Chart
Rasmus Liland
jr@| @end|ng |rom po@teo@no
Thu Aug 20 01:08:39 CEST 2020
Dear Paul, I answer inline:
On 2020-08-19 16:27 -0500, Paul Bernal wrote:
|
| I tried using the function
| pareto.chart from the qcc package, but
| the names of the columns in the pareto
| chart are some codes
What codes? Can you please elaborate on
this?
| that do not match the school names in
| the School column of dataset2.
Does this mean there exists a third
hidden vector not included in dataset2
which conflicts with dataset2$School?
| The graph is generated without any
| issues,
Good!
| it's just that I want the bars
| to have the school labels, how can I
| accomplish this?
So as ?qcc::pareto.chart states,
qcc::pareto.chart needs a vector of
values, data, and names(data) can be
used to label the bars, there are also
some examples at the bottom.
Just doing this makes the labels show
up.
points <- dataset2$Points
names(points) <- dataset2$School
qcc::pareto.chart(points,
main="Pareto Chart for School Points")
Was this what you were looking to do?
Best,
Rasmus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200820/2e6a7408/attachment.sig>
More information about the R-help
mailing list