chmSetDisplayLength | R Documentation |
Sets the maximum number of characters to display for row or column labels in the NG-CHM viewer.
chmSetDisplayLength(chm, displayLength, rowOrCol)
## S4 method for signature 'ngchmVersion2'
chmSetDisplayLength(chm, displayLength, rowOrCol)
chm |
An ngchmVersion2 object to modify |
displayLength |
Numeric value to set as display length (allowed range: 1 to 99, inclusive) |
rowOrCol |
Character string indicating which labels to modify: "row" or "col" ("column" also accepted) |
Modified ngchmVersion2 object with updated display length
# Create a new NG-CHM object
chm <- chmNew("New Heat Map")
# Set row labels to display up to 20 characters
chm <- chmSetDisplayLength(chm, 20, "row")
# Set column labels to display up to 15 characters
chm <- chmSetDisplayLength(chm, 15, "col")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.