mildpiggy / DEP2

An r package for proteomics data Analysis, developed from DEP.
Other
12 stars 2 forks source link

reduce font size for heatmap #10

Open cathalgking opened 4 weeks ago

cathalgking commented 4 weeks ago

How can I reduce the font size for the labels above the heatmap showing missing values?

plot_missval(se = plate1_norm, 
             column_title = "Proteins with missing values for plate 1 filt",
             column_title_gp=grid::gpar(fontsize=12))
Screenshot 2024-06-07 at 10 30 55 AM
mildpiggy commented 1 week ago

The labels size is set by column_names_gp parameter. We already set column_names_gp = gpar(fontsize = 16) in plot_missval and we did not reserve this parameter interface. , thus you cannot change it directly. As an optional method, you can redefine the plot_missval function by adding the column_names_gp parameter interface or adjusting the fontsize value inside.