knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rtists

R-CMD-check test-coverage Codecov test
coverage pkgdown CRAN
status

The goal of rtists is to provide visualization tools for tissue integrity superimposed on tractography streamlines.

Installation

You can install the development version of rtists from GitHub with:

# install.packages("devtools")
devtools::install_github("astamm/rtists")

Example

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)



astamm/rtists documentation built on April 14, 2022, 9:44 a.m.