Entering edit mode
11.1 years ago
gundalav
▴
380
In a lot of biological oriented paper, one often finds figure like this:
What is the program usually people used for drawing that? If R, how do they achieve the horizontal marker and asterisks?
Dynamite plots are coming out of fashion or at least should go out of fashion because they hide more than they show. http://biostat.mc.vanderbilt.edu/wiki/Main/DynamitePlots
Maybe they should go out of fashion, but they definitely won't. They're extremely easy to make and interpret and most bench scientists don't really care too much about the "hiding of data" aspect. In fact, even when a journal has rules against barplots like this, they'll still accept and publish them (I can tell you that from recent experience (I didn't make the graphs!)).
Might as well mention the specifics: (i) When n is small (e.g., n < 15) use a dot plot instead (thus every data point is represented). (ii) If n is large use a box plot (so the distribution can be evaluated). (iii) by hiding the lower interval, dynamite plots imply symmetry in the measure (which may be false). Either way, one could still mark these other plots with the horizontal marker and asterisks.
I usually just put the asterisks and such in with Adobe Illustrator. Then you can just drag them to where they should be instead of needing to calculate things. Seidel's code will get you the rest!
The biologists I know generate this sort of graphs with graphpad. To do something similar I think I'll use ggplot.
You could use "ggplot2" to address the problems. Ref. https://nakedstatistics.wordpress.com/2017/05/11/plotting-significance/