## Not run:
# url <- "http://nifti.nimh.nih.gov/nifti-1/data/filtered_func_data.nii.gz"
# urlfile <- file.path(system.file("nifti", package="oro.nifti"),
# "filtered_func_data")
# download.file(url, urlfile, quiet=TRUE)
# ## End(Not run)
## The NIfTI file provided here contains the first 18 volumes (10%)
## of the original data set
urlfile <- file.path(system.file("nifti", package="oro.nifti"),
"filtered_func_data")
(ffd <- readNIfTI(urlfile))
image(ffd, oma=rep(2,4))
orthographic(ffd, oma=rep(2,4))
## Not run:
# ## 27 scans of Colin Holmes (MNI) brain co-registered and averaged
# ## NIfTI two-file format
# URL <- "http://imaging.mrc-cbu.cam.ac.uk/downloads/Colin/colin_1mm.tgz"
# urlfile <- file.path(tempdir(), "colin_1mm.tgz")
# download.file(URL, dest=urlfile, quiet=TRUE)
# untar(urlfile, exdir=tempdir())
# colin <- readNIfTI(file.path(tempdir(), "colin_1mm"))
# image(colin, oma=rep(2,4))
# orthographic(colin, oma=rep(2,4))
# ## End(Not run)
Run the code above in your browser using DataLab