added NOTE to the barplots_subcolours_aa_PS.R as I am trying it for other plots
This commit is contained in:
parent
d13484e8f5
commit
9c3818fd98
2 changed files with 24 additions and 20 deletions
|
@ -209,6 +209,8 @@ svg(plot_bp_aa_subcols_duet, width = 26, height = 4)
|
|||
|
||||
g = ggplot(df, aes(factor(position, ordered = T)))
|
||||
|
||||
# NOTE: Here it"s important to specify that your axis goes from 1 to max number of levels
|
||||
# This is the key to generating the geom_tiles OUTside the plotting area on the x-axis!
|
||||
OutPlot_aa_PS = g +
|
||||
coord_cartesian(xlim = c(1, my_xlim)
|
||||
#, ylim = c(0, 6)
|
||||
|
@ -222,7 +224,7 @@ OutPlot_aa_PS = g +
|
|||
geom_tile(aes(,-1.2, width = 0.95, height = -0.2)
|
||||
, fill = df$lab_bg2) +
|
||||
|
||||
# Here it"s important to specify that your axis goes from 1 to max number of levels
|
||||
|
||||
theme(axis.text.x = element_text(size = my_xats
|
||||
, angle = 90
|
||||
, hjust = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue