dadded v2 of barplot layput
This commit is contained in:
parent
da8f8d90d4
commit
7c40e13771
7 changed files with 800 additions and 79 deletions
|
@ -26,14 +26,15 @@ site_snp_count_bp <- function (plotdf
|
|||
, df_colname = "position"
|
||||
#, bp_plot_title = ""
|
||||
#, leg_title = "Legend title"
|
||||
, leg_text_size = 20
|
||||
, axis_text_size = 25
|
||||
, axis_label_size = 22
|
||||
, leg_text_size = 10#20
|
||||
, axis_text_size = 10#25
|
||||
, axis_label_size = 10#22
|
||||
, subtitle_size = 10#20
|
||||
, geom_ls = 10
|
||||
, xaxis_title = "Number of nsSNPs"
|
||||
, yaxis_title = "Number of Sites"
|
||||
, title_colour = "chocolate4"
|
||||
, subtitle_text = NULL
|
||||
, subtitle_size = 20
|
||||
, subtitle_colour = "pink")
|
||||
{
|
||||
|
||||
|
@ -131,7 +132,7 @@ site_snp_count_bp <- function (plotdf
|
|||
scale_x_continuous(breaks = unique(snpsBYpos_df$snpsBYpos)) +
|
||||
geom_label(stat = "count", aes(label = ..count..)
|
||||
, color = "black"
|
||||
, size = 10) +
|
||||
, size = geom_ls) +
|
||||
theme(axis.text.x = element_text(size = axis_text_size
|
||||
, angle = 0)
|
||||
, axis.text.y = element_text(size = axis_text_size
|
||||
|
@ -148,10 +149,15 @@ site_snp_count_bp <- function (plotdf
|
|||
, plot.subtitle = element_text(size = subtitle_size
|
||||
, hjust = 0.5
|
||||
, colour = subtitle_colour)) +
|
||||
labs(title = bp_plot_title
|
||||
, subtitle = subtitle_text
|
||||
, x = xaxis_title
|
||||
, y = yaxis_title)
|
||||
# labs(title = bp_plot_title
|
||||
# , subtitle = subtitle_text
|
||||
# , x = xaxis_title
|
||||
# , y = yaxis_title)
|
||||
|
||||
labs(title = ""
|
||||
, subtitle = bp_plot_title
|
||||
, x = xaxis_title
|
||||
, y = yaxis_title)
|
||||
}
|
||||
|
||||
########################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue