knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of papayaWidget is to include a papaya
object in an Rmarkdown document.
See the full docs at http://johnmuschelli.com/papayaWidget.
You can install the papayaWidget
using:
# install.packages("papayaWidget") devtools::install_github("muschellij2/papayaWidget")
This is a basic example which shows you how to solve a common problem:
library(kirby21.t1) library(papayaWidget) library(neurobase) outdir = tempdir() download_t1_data(outdir = outdir) fname = kirby21.t1::get_t1_filenames(outdir = outdir) fname = fname[1] img = readnii(fname) papaya(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.