I want to draw boxplot where the geom_points are displayed based on
"ERBB2.MUT" subset and they should be displayed in the right box (based
both on the "ERBB2.2064" field and "ERBB2_Status").

However, given my command I currently only see "red" points corresponding
to "MUT" subset in one straight line corresponding to only "ERBB2.2064"
stratification on x-axis. It dosen't take into account the "ERBB2.Status"
stratification. Can anyone help me?

Call ERBB2|2064 ERBB2_Status ERBB2-MUT
A 7.214E-01 CHANGE MUT
B -4.208E-02 NEUTRAL MUT
D 1.080E+00 NEUTRAL MUT
C 2.347E-01 NEUTRAL MUT

ggplot(data=testdata, aes(x=Call, y=ERBB2.2064)) +
geom_boxplot(aes(fill=ERBB2_Status),width=0.8)+theme_bw()+geom_point(data=subset(testdata,ERBB2.MUT=="MUT"),aes(shape=Call,color="Red"))

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to