search for: labtreat

Displaying 1 result from an estimated 1 matches for "labtreat".

Did you mean: diabtreat
2017 Aug 18
1
help with stacked ggplot
Hi, I am new to R and this is probably a very basic question but I can?t seem to figure out a solution. I am creating a stacked ggplot with the following data and code: PercentageData.csv looks like this: decision treatment percentage labtreatment defect 0 53.49 COMMON defect 1 78.00 ASYMMETRIC defect 2 96.67 PRIVATE coop 0 46.51 COMMON coop 1 22.00 ASYMMETRIC coop 2 3.33 PRIVATE %Load data: charts.data <- read.csv("PercentageData.csv?) %create stacked ggplot p4 <- ggplot() + geom_bar(aes(y = percentage, x = treatment, fil...