ezSplitLongLabels | R Documentation |
Splits long labels into two lines.
ezSplitLongLabels(labels, nSplit = 20)
ezSplitLongText(text, nSplit = 180)
labels |
a character vector to split long elements from. |
nSplit |
an integer specifying at which position to split the labels. |
ezSplitLongText
: Splits long character lines into several.
Rehrauer, Hubert
Schmid, Peter
a = paste(letters[1:22], collapse="")
b = paste(letters[1:23], collapse="")
c = paste(letters[1:24], collapse="")
charVec = c(a, b, c)
par(mar=c(10.1, 4.1, 4.1, 2.1))
plot(1:3, xaxt="n", xlab="")
splittedLabels = ezSplitLongLabels(charVec, nSplit=22)
axis(1, at=1:3, labels=splittedLabels, las=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.