bic ton
2018-06-12 17:03:52 UTC
â Hi,
My data looks like this:
I want to plot histogram (like the attached one) and I know it can be done
like this:
ggplot() + geom_histogram()
However, here I have a list and I am not sure how I do it. If I convert to
dataframe, I will los the order that I want to keep in the graph (1 and
3).
list(structure(list(Group.1 = structure(3:4, .Label = c("A",
"B", "C", "D", "E", "F"), class = "factor"), Pr1 = c(65, 75), Pr2 = c(54,
88), Prh = c(25, 5), SE = c(25, 75 )), row.names = c(NA, -2L), class =
"data.frame"),NULL, structure(list( Group.1 = structure(3:4, .Label =
c("A",
"B", "C", "D", "E", "F"), class = "factor"), Pr1 = c(81,4), Pr2 = c(66,
57),Prh = c(3,3), SE = c(8, 9)), row.names = c(NA,
-2L), class = "data.frame"))
Any help on this?
Thanks
Bick
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
My data looks like this:
I want to plot histogram (like the attached one) and I know it can be done
like this:
ggplot() + geom_histogram()
However, here I have a list and I am not sure how I do it. If I convert to
dataframe, I will los the order that I want to keep in the graph (1 and
3).
list(structure(list(Group.1 = structure(3:4, .Label = c("A",
"B", "C", "D", "E", "F"), class = "factor"), Pr1 = c(65, 75), Pr2 = c(54,
88), Prh = c(25, 5), SE = c(25, 75 )), row.names = c(NA, -2L), class =
"data.frame"),NULL, structure(list( Group.1 = structure(3:4, .Label =
c("A",
"B", "C", "D", "E", "F"), class = "factor"), Pr1 = c(81,4), Pr2 = c(66,
57),Prh = c(3,3), SE = c(8, 9)), row.names = c(NA,
-2L), class = "data.frame"))
Any help on this?
Thanks
Bick
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.