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

coloring rectnagles #59

Open
agolicz opened this issue Mar 24, 2015 · 0 comments
Open

coloring rectnagles #59

agolicz opened this issue Mar 24, 2015 · 0 comments

Comments

@agolicz
Copy link

agolicz commented Mar 24, 2015

Hi,
I am trying to plot mutations from multiple individuals on the same track of circular plot.
I have GRanges object that looks like this:
GRanges object with 26 ranges and 4 metadata columns:
seqnames ranges strand | id var val buu
|
[1] 1 [32417, 32427] * | jcf7180000862659 A 1 32417
[2] 1 [58621, 58631] * | jcf7180000753913 B 1 58621
[3] 2 [25622, 25632] * | jcf7180000860774 C 1 25622
[4] 2 [44180, 44190] * | jcf7180001643718 D 1 44180
[5] 2 [66003, 66013] * | jcf7180001638671 E 1 66003

I would like to color mutations by var. I am able to plot them as points but not as rect.
cols <- RColorBrewer::brewer.pal(6,"Paired")
names(cols) <- c("A,"B","C","D", "E", "F")
p <- p + circle(lost, geom = "point", aes(fill=var, colour=var, shape=0)) + scale_color_manual(values = cols) + scale_fill_manual(values = cols) + scale_shape_identity()

That works for goem point, but I would like geom rect. If I change geom to rect and do aes(fill=var, colour=var​) all lines are black.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant