r - Making one variable be shapes of different colors (ggplot2) -


so right i've got plot:

my plot

(sorry it's not inline image, first time on stack overflow , wouldn't let me post images)

the plot produced code:

ggplot(potassium.data,              aes(x=experiment,y=value,  colour=pedigree))+geom_jitter()+labs(title=element) 

the problem is, there 31 different maize pedigrees being plotted here, it's difficult distinguish colors each other. wondering if it's possible make color , shape of point used uniquely identify pedigree, example 1 pedigree red squares, red circles, third 1 blue squares, fourth blue circles, , on. make far easier distinguish points. know how this?

i don't think thats possible, if shaping pedigree end many categories of shapes have colors now.

geom_label() , geom_text() let plot cultivar id directly onto plot, maybe build separate column equivalent genus, cultivars grouped somehow (maybe a, b, ph, etc). color "genus" column, make plot better:

ggplot(potassium.data,              aes(x=experiment,y=value, label=pedigree, colour = genus))+ geom_label(position = position_jitter())+ labs(title=element) 

ideally end plot colored genus while plotting suffix digits in pedigree.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -