Render HTML or Markdown. The function html_grob() returns a grid
grob that can be drawn with grid.draw(), and the function
draw_html() renders the HTML directly to the current graphics
device.
html_grob( text, x = unit(0.05, "npc"), y = unit(0.95, "npc"), width = unit(0.9, "npc"), height = NULL, hjust = 0, vjust = 1, css = "", default.units = "npc", vp = NULL ) draw_html(..., newpage = TRUE)
| text | HTML or Markdown text to render |
|---|---|
| x, y | x and y position |
| width, height | Width and height. A value of |
| hjust, vjust | horizontal and vertical justification relative
to |
| css | CSS specification to use for rendering |
| default.units | Units of |
| vp | viewport |
| ... | Parameters forwarded to |
| newpage | Logical indicating whether |
html_grob(): A grid grob representing the rendered html text.
draw_html(): Nothing. The function is only called for its side effects.