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

how to add a group of point in to ggmsa #41

Open
loverlyday opened this issue May 31, 2022 · 1 comment
Open

how to add a group of point in to ggmsa #41

loverlyday opened this issue May 31, 2022 · 1 comment

Comments

@loverlyday
Copy link

Hi,
I am trying to annotate two group specific point in the picture. However, it doesn't seem to work properly . Please see examples below:

p<-ggmsa(aln_data,start = 1,end=400,color = "Chemistry_NT", char_width = 0.5,seq_name = T,border = NA)+facet_msa(50)
pos_info =data.frame('pos'=rep(c(10,20,60,300),2),group =rep(c('HG','GW'),each=4))
p+geom_point(data=pos_info,aes(x=pos,y=3.2,color=group,shape=group),size=0.2)

图片

hope you can give me some advice

@nyzhoulang
Copy link
Collaborator

Hi, @loverlyday

Maybe you can try using geom_rect for grouping.
Pls see #26

Regards,
Lang

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

2 participants