Changbin Du
2010-Apr-07 17:00 UTC
[R] label the bars by the percentage values in the conditional histogram?
HI, Dear R-community:
I have the following codes to plot the conditional histogram, is a way to
label the bars by the percentage values in the conditional histogram?
h<- sample(1:14, 319, rep=T)
c<- sample(1:14, 608, rep=T)
n<- sample(1:14, 1140, rep=T)
vt<-c(h, c, n)
ta<-rep(c("h", "c", "n"), c(319, 608, 1140))
to<-data.frame(vt,ta)
library(lattice)
histogram(~ vt|ta, data=to, layout=c(1,3), labels=TRUE, main="Histograms by
target", col="skyblue")
Thanks so much!
--
Sincerely,
Changbin
--
[[alternative HTML version deleted]]
Changbin Du
2010-Apr-19 23:57 UTC
[R] label the bars by the percentage values in the conditional histogram?
HI, Dear R community,
HOW to LABEL the bars by the percentage values in the conditional
histogram: Thanks so much!
h<- sample(1:14, 319, rep=T)
c<- sample(1:14, 608, rep=T)
n<- sample(1:14, 1140, rep=T)
vt<-c(h, c, n)
ta<-rep(c("h", "c", "n"), c(319, 608, 1140))
to<-data.frame(vt,ta)
library(lattice)
histogram(~ vt|ta, data=to, layout=c(1,3), labels=TRUE, main="Histograms by
target", col="skyblue")
--
Sincerely,
Changbin
--
[[alternative HTML version deleted]]
Changbin Du
2010-Apr-20 15:52 UTC
[R] label the bars by the percentage values in the conditional histogram?
HI, Dear R Community,
Does anyone know how to label the values in the conditional histogram?
Thanks so much!!!
h<- sample(1:14, 319, rep=T)
c<- sample(1:14, 608, rep=T)
n<- sample(1:14, 1140, rep=T)
vt<-c(h, c, n)
ta<-rep(c("h", "c", "n"), c(319, 608, 1140))
to<-data.frame(vt,ta)
library(lattice)
histogram(~ vt|ta, data=to, layout=c(1,3), labels=TRUE, main="Histograms by
target", col="skyblue")
--
Sincerely,
Changbin
--
[[alternative HTML version deleted]]