circletype | R Documentation |
Apply a curvature on text elements
circletype(ui_element, dir = 1, radius = 200)
ui_element |
Text element on which the curvature should be applied. Must be something like ‘h1()', 'h2()', etc. This element MUST have an id. Doesn’t work on other HTML elements such as buttons. |
dir |
Sets the text direction, must be equal to 1 (clockwise) or -1 (counter-clockwise). |
radius |
Sets the desired text radius. The lower the value, the more curved the text. |
A curved text.
if (interactive()) { library(shiny) ui <- fluidPage( use_circletype(), # load dependencies circletype(h1("this is a title", id = "test_h1"), dir = -1, radius = 200) ) server <- function(input, output, session) {} shinyApp(ui, server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.