Created
March 6, 2019 10:51
Star
You must be signed in to star a gist
Rice3K analysis 2: dataviz some specific regions are under selective pressure
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
data = read.csv("~/data.csv") | |
colnames(data) <- c("contig", "pos", "t", "f", "value", "value2") | |
qplot(data=data, x=pos,y=1,color=value, alpha=I(1),geom="jitter",facets=contig ~ ., main="Position vs. % of Alleles out of Hardy-Weinberg Equilibrium (p<=0.05)", xlab="Chromosome Position (Bin Size=10Kb)",ylab="") + theme_bw() + theme(axis.title = element_text(size = 15), axis.ticks.y=element_blank(),axis.text.y=element_blank()) + scale_x_continuous() + guides(colour = guide_legend(override.aes = list(alpha = 1))) + scale_colour_gradient(low="white",high="red") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment