David Rengel
2018-09-13 15:38:03 UTC
Hi,
This may sound...silly , but I wonder if it is possible to make a barplort
withouts the bars, just whowing the mean with a dot?
I have the following code, which produces the attached plot. Would it be
possible to get the same thing but replacing the bars + CIs with dots + CIs?
geom_point does not seem to like "dodge" position.
Thanks a lot.
Best,
David
sum.bothd <- summarySE(data.lm, measurevar = "Activity", groupvars =
c("my_date","Zone","Genotype"))
ggplot(sum.bothd, aes(x=Zone, y=Activity, fill=Genotype)) +
geom_bar(position="dodge", stat="identity") +
geom_errorbar(aes(ymin=Activity-ci, ymax=Activity+ci),
width=.2, # Width of the error bars
position=position_dodge(.9)) +
theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
ggtitle("Both Days") +
theme(legend.position="none")
--
--
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.
This may sound...silly , but I wonder if it is possible to make a barplort
withouts the bars, just whowing the mean with a dot?
I have the following code, which produces the attached plot. Would it be
possible to get the same thing but replacing the bars + CIs with dots + CIs?
geom_point does not seem to like "dodge" position.
Thanks a lot.
Best,
David
sum.bothd <- summarySE(data.lm, measurevar = "Activity", groupvars =
c("my_date","Zone","Genotype"))
ggplot(sum.bothd, aes(x=Zone, y=Activity, fill=Genotype)) +
geom_bar(position="dodge", stat="identity") +
geom_errorbar(aes(ymin=Activity-ci, ymax=Activity+ci),
width=.2, # Width of the error bars
position=position_dodge(.9)) +
theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
ggtitle("Both Days") +
theme(legend.position="none")
--
--
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.