glMDPlot() currently struggles with text readability when there are many groups. This is common in single cell data. Intermediate strategy is to abbreviate the group names. Long term it would be useful to allow rotated labels.
Rotate text using transform = "rotate(-nDegs)" tag attribute
Re-anchor using style = "text-anchor: end" tag attribute
This fixes text by the top-right corner and rotates anti-clockwise. The goal is to have 90° rotation be such that the label text is in the same orientation as the y-axis label.
Problems with immediate implementation:
Text becomes cut off. Can fix by expanding SVG size or shrinking plot size.
Preferable to adjust SVG size, will need to expand by appropriate amount as calculated by the furthest downward reaching tick label.
glMDPlot()
currently struggles with text readability when there are many groups. This is common in single cell data. Intermediate strategy is to abbreviate the group names. Long term it would be useful to allow rotated labels.transform = "rotate(-nDegs)"
tag attributestyle = "text-anchor: end"
tag attributeThis fixes text by the top-right corner and rotates anti-clockwise. The goal is to have 90° rotation be such that the label text is in the same orientation as the y-axis label.
Problems with immediate implementation:
Preferable to adjust SVG size, will need to expand by appropriate amount as calculated by the furthest downward reaching tick label.
Restrict to height expansion only.