Question
I want to repost part of a question with some clarification. I am not looking for a highly overcomplicated answer. I want to take the
I want to repost part of a question with some clarification. I am not looking for a highly overcomplicated answer. I want to take the following dataframe in r.
df <- data.frame(nucleotide = c("A", "C", "G", "T"), first.exon = c(18, 28, 33, 21), internal.exon = c(25, 28, 26, 21), last.exon = c(26, 22, 23, 29)) # Print dataframe
nucleotide first.exon internal.exon last.exon 1 A 18 25 26 2 C 28 28 22 3 G 33 26 23 4 T 21 21 29 |
Make a grouped barplot where the nucleotides are the groups on the X axis and the three exons are the subgroups on the x-axis. The number of nucleotides in each exon should be the y-axis. in this way we can compare the number of each nucleotide in each exon. A stacked bar graph is not preferable in this case. either base r or ggplot is fine. thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started