textplot | R Documentation |
Generate a new plot window with just text centered in the middle. This is ideally used in conjunction with the 'layout' command to label columns and rows of the grid.
textplot(..., x=1, y=1)
... |
parameters passed to the 'text' function |
x |
the x position of the text. |
y |
the y position of the text. |
A new plot window wiht just text
layout, text
layout(rbind(c(1,1,1),c(2,3,4), c(5, 6,7)),
widths=c(5, 10,10) , heights=c(5, 10,10))
textplot('title', cex=2)
textplot('row 1', srt=90, cex=2)
plot(1,2)
hist(c(1,2,34,4,3,2,2))
textplot('row 2', srt=90, cex=2)
pie(c(1,23,3,1,1,2,3,4,54,5))
plot(c(1,2,4,4,23,2), c(1,2,4,3,2,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.