knitr::opts_chunk$set( collapse = TRUE, comment = "", fig.path = "man/figures/README-", out.width = "100%" )
rtists
The goal of rtists
is to provide visualization tools for tissue
integrity superimposed on tractography streamlines.
You can install the development version of rtists
from
GitHub with:
# install.packages("devtools") devtools::install_github("astamm/rtists")
The following code generates a basic 3D visualisation of the left uncinate fasciculus:
library(rtists) library(future) plan(multisession) out <- autoplotly::autoplotly(uf_left) plan(sequential)
html_path <- knitr::fig_path("html") png_path <- knitr::fig_path("png") htmlwidgets::saveWidget( out, file = html_path, selfcontained = FALSE, libdir = "lib" ) webshot2::webshot(url = html_path, file = png_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.