Hi- Is there a quick way to plot a Pareto diagram? I couldn't find one. I'm being forced to do some pretty weird stuff, with awk and all, to extract data in order to plot the frequency of qualitative data from a larger set. Perhaps it's just my GNUrance. I mean, one day, if I have time, I might even write a generic Perl script, but right now, it doesn't look too good on the client side, if you know what I mean. (And what's with the hist function? __Not__ how I learned...) TIA, Regs, Henry L. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, Jan 31, 2002 at 01:17:45AM -0200, hzi at uol.com.br wrote:> Hi- > > Is there a quick way to plot a Pareto diagram?Yup. You can find it quite easily if you go to the R search engine: http://finzi.psych.upenn.edu/search.html and type in "pareto chart" to get an immediate answer, rather than waiting for the list to get your message out. (the short answer is at: http://finzi.psych.upenn.edu/R/Rhelp/archive/5227.html )> (And what's with the hist function? __Not__ how I learned...)Um, could be a little more specific..? What did you learn? From whom? What surprised you? etc. Jason -- Indigo Industrial Controls Ltd. 64-21-343-545 jasont at indigoindustrial.co.nz -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
hzi at uol.com.br writes:>Hi- > > Is there a quick way to plot a Pareto diagram? > I couldn't find one. I'm being forced to do some pretty weird stuff, > with awk and all, to extract data in order to plot the frequency of > qualitative data from a larger set. Perhaps it's just my GNUrance. > I mean, one day, if I have time, I might even write a generic Perl >script, > but right now, it doesn't look too good on the client side, if you know > what I mean.It's a matter of sorting in revers order the values in a table and passing that to barplot(): barplot(rev(sort(table(my.variable)))) as in: data(attenu) barplot(rev(sort(table(attenu$event)))) Get rid of the colours using the col parameter: barplot(rev(sort(table(attenu$event))), col = "white") I hope that helps, Mark -- Mark Myatt -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Seemingly Similar Threads
- How do you expand memory capability (Was: R crashes in Windows ME)
- Is this a bug with a simple arithmetic operation with a vector object?
- ECDF, distribution of Pareto, distribution of Normal
- How can I simulate Pareto distribution in R?
- simulation from pareto distn