This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
credplot.gg <- function(d){ | |
# d is a data frame with 4 columns | |
# d$x gives variable names | |
# d$y gives center point | |
# d$ylo gives lower limits | |
# d$yhi gives upper limits | |
require(ggplot2) | |
p <- ggplot(d, aes(x=x, y=y, ymin=ylo, ymax=yhi))+ | |
geom_pointrange()+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#My APA-format theme | |
apatheme=theme_bw()+ | |
theme(panel.grid.major=element_blank(), | |
panel.grid.minor=element_blank(), | |
panel.border=element_blank(), | |
axis.line=element_line(), | |
text=element_text(family='Times'), | |
legend.position='bottom', axis.text=element_text(size=14), |