First question - I would like to plot data like a stacked barchart, except ggplot seems to only have the y-axis as "count", not based on values.
Essentially, I would like to plot my data like the two-color graph on this page:
http://docs.ggplot2.org/current/geom_bar.html, entitled "Stacked bar charts". I want the barcharts to scale to the integer values of my data set (not count).
I've attached the example data set that I'm using.
Here's the R code that I've tried to use so far:
rawdata <- read.csv (file="example_pivot.csv", header=TRUE)
#### look to see what the data looks like
str(rawdata)
head(rawdata)
library(ggplot2)
# Stacked bar charts are easy in ggplot2, but not effective visually,
stackedbarchart <- ggplot(rawdata, aes(Person, fill=Status)) + geom_bar() +
theme(panel.grid.major=element_blank(),plot.background=element_blank(),
panel.grid.minor=element_blank(),axis.title = element_text(face = "bold",
size = 12),axis.text = element_text(colour = "black"))
stackedbarchart