Hello,
I have three method types and 100 generalization errors for each, all in the
range [0.65,0.81]. I would like to make a stacked histogram plot using ggplot2
with this data ...
Therefore I need a data frame of the form e.g.
Method GE
---------- ------
"Classic" 0.76
"Classic" 0.79
"Own Bootstrap" 0.81
"Own Bootstrap" 0.79
"R Bootstrap" 0.71
"R Bootstrap" 0.75
So I combine the data in the following way:
normalerrors <- rbind(cbind(rep("Classic",S),classicge[,1]),
cbind(rep("Own Bootstrap",S),ownge[,1]),cbind(rep("R
Bootstrap",S),rbootge[,1]))
normalerrors <- data.frame(method=factor(normalerrors[,1]),ge=normalerrors[,2])
But doing it in this way my GE coefficients get automatically converted to
string type ... how can I avoid this conversion when doing the cbind?
TIA,
Best regards,
Giovanni
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.