I am working on a boxplot to display parameter estimates in RStudio, so far, so good, however, there seems to be a problem when I try to change the size of elements. I only want to make the line slightly bigger, but when I try, the lines are displayed in a much larger size, regardless of what size I put in: See an example below.
ggplot(ParameterEstimates, aes(x = Substance, y = Betas, color = Substance, size = 0.5))+
for the example I put in a value of 0.5 and 3, respectively
stat_boxplot(geom='errorbar', width = 0.5, position=position_dodge())+
geom_boxplot(outlier.shape=NA)+
geom_point(position=position_jitterdodge())+
coord_cartesian(ylim = c(-1.5, 1.25))+
labs (x="Group", y="Beta-Weights", title = "Parameter Estimates")+
theme(plot.title = element_text(color = "grey20", size = 20, hjust = 0.5),
axis.text.x = element_text(color = "grey20", size = 13, angle = 0, hjust = .5, vjust = .5, face = "plain"),
axis.text.y = element_text(color = "grey20", size = 13, angle = 0, hjust = 1, vjust = 0, face = "plain"),
axis.title.x = element_text(color = "grey20", size = 15, angle = 0, hjust = .5, vjust = 0, face = "plain"),
axis.title.y = element_text(color = "grey20", size = 15, angle = 90, hjust = .5, vjust = .5, face = "plain"),
panel.background = element_rect(colour = "black"),
panel.grid.major = element_line(size = 0.25, linetype = 'solid', colour = "grey"),
panel.grid.minor = element_line(size = 0.25, linetype = 'solid', colour = "grey"))+
scale_colour_manual(values = c("#226C8C", "#DE8B2D" ))
Can you tell me if I am doing something wrong? Thank you for your help!