knitr::opts_chunk$set(echo = TRUE)
library(svgR)

This is an example of using svgR inside an R Markdown.

Note the use of the option results='asis'

WH<-c(500,200)
svgR(wh=WH,
     ellipse(
       cxy=WH/2,
       rxy=WH/4,
       fill='orange',
       stroke='blue',
       stroke.width=3
     )
)

After making changes, simply click the commit button to see the results.



mslegrand/pointR documentation built on July 4, 2022, 9:57 p.m.