Description Usage Arguments Value Methods Author(s) See Also Examples
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.
1 2 3 4 5 |
x |
The object to be visualized. |
y |
Not used. |
... |
Other yet to be defined parameters. |
This function is run for its side-effect (plotting an image).
A MincVolumeIO object for which to create a summary plot. Plot consists of 21 axial slices and an intensity histogram.
A MincSlice object and slice to be visualized (plotted).
Jim Nikelski nikelski@bic.mni.mcgill.ca
mincIO.plotSlicePretty
print-methods
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.