Hello,
When I plot a polar graph of a factor variable with an empty level the empty level (“D” in the example) is not positioned well on the plot. How can I adjust this?
For example:
dat <- as.data.frame(c(rep("A",10),rep("B",8),rep("C",6)))
names(dat) <- "V1"
dat$V1 <- factor(dat$V1,levels=c("A","B","C","D"))
dat$colour <- as.factor(rep(c(1,2),12))
ggplot(data=dat,aes(V1)) + geom_bar(aes(fill=colour)) + scale_x_discrete(drop=FALSE) + coord_polar()
Greetings,
Jonas
--
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 ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2