mincIO.plot-methods: Methods to Plot Minc Images

Description Usage Arguments Value Methods Author(s) See Also Examples

Description

The plot generic function is a polymorphous function that has been overloaded to produce 2 image plots: (1) a summary plot of an entire volume, and (2) a plot of a specific slice.

Usage

1
2
3
4
5
## S4 method for signature 'MincVolumeIO'
plot(x, y, ...)

## S4 method for signature 'MincSlice'
plot(x, y, ...)

Arguments

x

The object to be visualized.

y

Not used.

...

Other yet to be defined parameters.

Value

This function is run for its side-effect (plotting an image).

Methods

x = "MincVolumeIO"

A MincVolumeIO object for which to create a summary plot. Plot consists of 21 axial slices and an intensity histogram.

x = "MincSlice"

A MincSlice object and slice to be visualized (plotted).

Author(s)

Jim Nikelski nikelski@bic.mni.mcgill.ca

See Also

mincIO.plotSlicePretty print-methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# read and plot the 305 volume
v305 = "norm_avg_305_mri_minc2.mnc"

vol <-  mincIO.readVolume(v305)    # default read (grayscale)
plot(vol)                                          # ... visualize the volume
sx <-  mincIO.getSliceX(vol, 20)                   # get axial slice 20
plot(sx)                                           # ... visualize the slice

vol <-  mincIO.readVolume(v305, colorMap="rainbow")    # set display colormap on read
plot(vol)                                              # show it using "rainbow"

vol <-  mincIO.readVolume(v305, colorMap="heat.colors") #
plot(vol)                                          # now use "heat" colormap 

## End(Not run)

jnikelski/rmincIO documentation built on May 19, 2019, 2:58 p.m.