Dear Kimmo,
It doesn't appear that anyone has yet mentioned pareto.chart() in the
qcc package; it may serve your purposes. Please note that it does not
require the data frame to be ordered beforehand.
x <- DATA[[2]]
names(x) <- DATA[[1]]
library(qcc)
pareto.chart(x)
Best wishes,
Jay
On Feb
On 2/3/08, K. Elo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a small problem when using barchart. I have the following data:
>
>letters a
> 6f 18
> 1a 15
> 10 j 12
> 9i 12
> 4d 9
> 5e 6
>
> The data is from a survey and summaries the alternative
Perhaps,
letters <- c("f","a", "j","i","d","e")
a <- c(18,15,12,12,9,6)
df <- data.frame(letters, a)
library(lattice)
barchart(reorder(df$letters, df$a) ~ df$a)
-Lauri
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
P
Hi,
I have a small problem when using barchart. I have the following data:
letters a
6f 18
1a 15
10 j 12
9i 12
4d 9
5e 6
The data is from a survey and summaries the alternatives selected in one
question. The idea is to have a bar chart illustr
4 matches
Mail list logo