Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x axis labels #5

Open
sinarueeger opened this issue Oct 16, 2018 · 0 comments
Open

x axis labels #5

sinarueeger opened this issue Oct 16, 2018 · 0 comments
Labels
mhtplot this issue is related to stat_manhattanplot function

Comments

@sinarueeger
Copy link
Owner

sinarueeger commented Oct 16, 2018

Add x axis labels to mhtplot. Instead of the continuum of 1:n, it should be 1:22, each in the middle of the chromosome

## create labels x axis
med.dat <- data %>% group_by(CHR) %>% summarise(median.x = median(cumsum.tmp))
data <- data %>% right_join(med.dat)
scale_x_continuous(breaks = med.dat$median.x, labels = med.dat$CHR)                     

This is how it looks currently (in fact without colors)

rplot

This is how it should look:
rplot copy

@sinarueeger sinarueeger added the mhtplot this issue is related to stat_manhattanplot function label Oct 16, 2018
@sinarueeger sinarueeger changed the title MHTplot: x axis labels x axis labels Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mhtplot this issue is related to stat_manhattanplot function
Projects
None yet
Development

No branches or pull requests

1 participant