Ich rätsel und probiere rum wie man folgende Grafik farbig umgestalten könnte (rot, blau).
Jemand eine Idee?
Ich habe mir verschiedene Möglichkeiten über Google angesehen, jedoch weiß ich nicht wo/wie genau ich das einfügen muss (R-Neuling).
Freue mich sehr über Tipps und Tricks
Code: Alles auswählen
interact3_er = ezPlot(
data = edat
, dv = .(Error)
, wid = .(Participant)
, within_full = .(RespRel,DistRel,ModRel)
, within = .(RespRel,DistRel,ModRel)
, x = .(RespRel)
, split = .(DistRel)
, col = .(ModRel)
, x_lab = 'Reaktionsrelation'
, y_lab = 'Fehlerrate in Prozent'
, split_lab = 'Distraktormerkmalsrelation'
, type = 3
, do_bars = TRUE
, bar_width = 0.2
, print_code = TRUE
)
ggplot(data = interact3_er, mapping = aes(y = Mean, x = RespRel))+
geom_point(mapping = aes(shape = DistRel), alpha = .8)+
geom_line(mapping = aes(linetype = DistRel, x = I(as.numeric(RespRel))), alpha = .8)+
geom_errorbar(mapping = aes(ymin = lo, ymax = hi) , linetype = 1, show.legend = FALSE, width = 0.2, alpha = .5)+
facet_grid(facets = . ~ ModRel, scales = 'fixed', space = "fixed")+theme_bw()+
labs(x = '', y = 'Fehlerrate in Prozent', colour = '',
shape = '', linetype = '')+
theme(legend.position="top")
print(interact3_plot)