nsh87 / receptormarker

Source for 'receptormarker' package for R: antibody receptor and phenotypic marker analysis
http://receptormarker.com
BSD 2-Clause "Simplified" License
4 stars 9 forks source link

Conditionally limit maximum number of plots per row for cluster membership plot #31

Closed nsh87 closed 9 years ago

nsh87 commented 9 years ago

I've capped the site at 20 clusters, but even with 12 clusters the x-axis labels of the cluster membership plot start to overlap.

12 clusters screen shot 2015-07-19 at 10 47 52 pm

Additionally, the individual plots becomes very compressed along the x-axis.

20 clusters screen shot 2015-07-19 at 10 49 32 pm

If you have control over the number of plots per row, can you just add a check on num_clust and if it's less than 10 then keep up to five plots per row; if it's 10-15 then limit it to 4 plots per row; and perhaps if it's 16-20 then 3 plots per row? I think doing this would take care of both the issues (the overlapping x-axis labels and the illegible graph at ~20 clusters).