I am not familiar so much with ggseqlogo package so I would appreciate any form of help.
I have prepared tibble that looks like:
test <- tibble( gene = c("A", "B", "A", "C", "B"),
seq = c("AAAAAAAAAAAAAAAAAAAA",
"GGGGGGGGGGGGGGGG",
"AAAAAATAAAAATAAAAAAA",
"AGTCGTCATGCATCAATCCCAATGGTGCA",
"GGGGGGGCCGGGGGGG") )
I want to prepare seqlogo per each gene, based on the gene name. Per each gene sequences have the same length.
As far I've tried this:
ggplot() +
geom_logo(data = test$gene) +
facet_grid(rows = ~ gene)
But as far this is the best what I got:

