Here's my codes for dataframe:
position <- c(1, 2, 3, 4, 5)
freq_1 <- c(0.1, 0.5, 0.4, 0.9, 1)
freq_2 <- 1 - freq_1
mydata <- data.frame(position, freq_1, freq_2)
What kind of stacked barplot I want:
I have been googling for hours but could not find how to make the stacked barplot with my data. Any help would be really appreciated. Thanks in advance!