Re: [R] annotation help in ggplot2

2019-09-20 Thread Moshiur Rahman
Thanks everyone especially Rishi to solve this issue Regards, Moshichi On Fri, Sep 20, 2019 at 22:26 Jeff Newmiller wrote: > Using this list as a labor pool to procure code for generating > publication-quality plots is abuse. Please read the Posting Guide and the > documentation for the ggplot

Re: [R] annotation help in ggplot2

2019-09-20 Thread Jeff Newmiller
Using this list as a labor pool to procure code for generating publication-quality plots is abuse. Please read the Posting Guide and the documentation for the ggplot package or go pay someone offlist for their services. On September 20, 2019 4:15:18 AM PDT, Moshiur Rahman wrote: >Thanks a lot

Re: [R] annotation help in ggplot2

2019-09-20 Thread ऋषि / rIsHi
Here is the solution inspired by this post https://stackoverflow.com/questions/18165863/multirow-axis-labels-with-nested-grouping-variables > data$Female <- factor(data$Female, levels = c("F1","F2","F3","F4","F5","F6","F7","F8","F9","F10")) > ggplot(data,aes(x=family,y=offs.surv.perct,fill=treat

Re: [R] annotation help in ggplot2

2019-09-20 Thread ऋषि / rIsHi
There are no attached data . On Fri, Sep 20, 2019 at 11:40 AM Moshiur Rahman wrote: > Dear ggplot2 experts, > > I'm struggling to make a plot having family id in x-axis and female id > below that family id where each 4 families have a single female id. > > I also need to add male id on top of ea

Re: [R] annotation help in ggplot2

2019-09-20 Thread Moshiur Rahman
Thanks a lot Rishi for your very cordial effort and great help. But still I need some help to improve it as the plot doesn't clearly depict which female belongs to which family and this can be detected by drawing a line from 1-4 for F1, 5-8 for F2 Another problem I can see that the position of

Re: [R] annotation help in ggplot2

2019-09-20 Thread Moshiur Rahman
Thanks Rishi, Please find attached the data herewith. On Fri, Sep 20, 2019 at 5:48 PM ঋষি ( ऋषि / rIsHi ) wrote: > There are no attached data . > > On Fri, Sep 20, 2019 at 11:40 AM Moshiur Rahman > wrote: > >> Dear ggplot2 experts, >> >> I'm struggling to make a plot having family id in x-ax

[R] annotation help in ggplot2

2019-09-20 Thread Moshiur Rahman
Dear ggplot2 experts, I'm struggling to make a plot having family id in x-axis and female id below that family id where each 4 families have a single female id. I also need to add male id on top of each bar which I can do before grid.arrange, but fail after doing it. So, any suggestions? Please