Description Usage Arguments Details Value Examples
Distribution of a contrast parameter according to the tissue class.
1 2 3 4 5 6 | ## S4 method for signature 'MRIaggr'
plotDistClass(object, param, param.membership, num = NULL,
bw.adjust = 1, kernel = "gaussian", from = NULL, to = NULL, ylim = NULL,
col = 1:6, main = NULL, mgp = c(2,0.5,0), type = "l",
pch = 20, lwd = 1, x.legend = "topright", y.legend = NULL, cex.legend = 0.8,
filename = paste(object@identifier, "plotDistClass", sep = "_"), ...)
|
object |
an object of class |
param |
the contrast parameter to display. character. REQUIRED. |
param.membership |
the parameters indicating the probabilistic membership to the tissue classes. character vector. |
num |
the slices to use. numeric vector or |
bw.adjust |
the smoothing bandwidth to use. numeric. See |
kernel |
the smoothing kernel to use. character. See |
from,to |
the left and right-most points of the grid at which the density is to be estimated. numeric or |
ylim |
the y limits of the plot. numeric vector of size 2 or |
col |
the colors with which the distributions will be displayed. character vector. |
main |
an overall title for the plot. character. |
mgp |
the margin line for the axis title, axis labels and axis line. positive numeric vector of size 3. |
type |
the type of plot to display. character. See |
pch |
the symbol with which the distribution will be displayed. positive integer. |
lwd |
the line width. postive numeric. |
x.legend |
the x coordinates of the legend. numeric or character. |
y.legend |
the y coordinates of the legend. numeric or character. |
cex.legend |
the expansion factor of the legend. positive numeric. |
filename |
the name of the file used to export the plot. character. |
... |
additional arguments to be passed to |
ARGUMENTS:
Information about the num
argument can be found in the details section of initNum
.
Information about the lwd
argument can be found in par
.
Information about the x.legend
, y.legend
, cex.legend
arguments can be found in legend
(cex.legend
is the cex
argument of legend
).
Argument(s) ...
must correspond to some of the following arguments : height
, hemisphere
, norm_mu
, norm_sigma
, path
, res
, unit
width
, window
.
FUNCTION:
This method relies on the density
function.
None.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## display
plotDistClass(MRIaggr.Pat1_red, param = "DWI_t0",
param.membership = c("MASK_T2_FLAIR_t2"))
# specify the smoothing bandwidth
plotDistClass(MRIaggr.Pat1_red, param = "DWI_t0", bw.adjust = 1,
param.membership="MASK_T2_FLAIR_t2")
# specify the scale
plotDistClass(MRIaggr.Pat1_red, param = "DWI_t0", bw.adjust = 1,
from = 200, to = 300, param.membership = "MASK_T2_FLAIR_t2")
# use several classes
## Not run:
plotDistClass(MRIaggr.Pat1_red, param = "TTP_t0", bw.adjust = 2,
param.membership = c("CSF","WM","GM","MASK_T2_FLAIR_t2"))
plotDistClass(MRIaggr.Pat1_red, param = "DWI_t0", bw.adjust = 2,
param.membership = c("CSF","WM","GM","MASK_T2_FLAIR_t2"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.