plot_shape | R Documentation |
This function allows you to preview the layout that shape_text()
calculates. It is purely meant as a sanity check to make sure that the values
calculated are sensible and shouldn't be used as a plotting function for
rendering text on its own.
plot_shape(shape, id = 1)
shape |
The output of a call to |
id |
The index of the text run to show in case |
This function is called for its side effects
arab_text <- lorem_text("arabic", 2)
shape <- shape_text(
arab_text,
max_width = 5,
indent = 0.2
)
try(
plot_shape(shape)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.