Description Usage Arguments Details Value Examples
Display a correlation map of the contrast parameters.
1 2 3 4 5 6 | ## S4 method for signature 'MRIaggr'
heatmapMRIaggr(object, param, num = NULL,
rescale = TRUE, method = "pearson", points.values = TRUE, type = "image",
breaks = NULL, col = cm.colors(256), main = NULL,
mgp = c(2,0.5,0), mar = c(4,4,1,6), las = 1, cex.axis = 1,
filename = paste(object@identifier, "heatmapMRIaggr", sep = "_"), ...)
|
object |
an object of class |
param |
the contrast parameters used to compute the correlations. character vector. REQUIRED. |
num |
the slices to use. numeric vector or |
rescale |
should the contrast parameters be scaled ? logical. |
method |
the correlation coefficient which is to be computed. Can be |
points.values |
should the correlation values be printed on the plot ? logical. |
type |
the type of plot to display. Any of |
breaks |
the break points to use to generate the color intervals. numeric vector or |
col |
the colors with which the correlations 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. |
mar |
the number of margin lines to be specified on the four sides of the plot. positive numeric vector of size 4. |
las |
the style of the axis labels. Any of |
cex.axis |
the magnification to be used for axis annotation relative to the current setting of cex. positive numeric. |
filename |
the name of the file used to export the plot. character. |
... |
additional arguments to be passed to |
This function with argument type set to image.plot
requires to have installed the field package to work.
Arguments ...
must correspond to some of the following arguments : height
, hemisphere
, path
, res
, unit
, width
, window
.
ARGUMENTS:
Information about the num
argument can be found in the details section of initNum
.
If breaks
is not NULL
, it must be of length length(col)+1
.
Information about the mar
, las
and mgp
arguments can be found in par
.
None.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## pearson
heatmapMRIaggr(MRIaggr.Pat1_red, param = c("MASK_T2_FLAIR_t2","DWI_t0","TTP_t0","MTT_t0"),
las = 1, type = "image", cex = 0.75,
breaks = seq(-1, 1, length.out = 51),
col = cm.colors(50))
## spearman
heatmapMRIaggr(MRIaggr.Pat1_red, param = c("MASK_T2_FLAIR_t2","DWI_t0","TTP_t0","MTT_t0"),
las = 1, type = "image", cex = 0.75, method = "spearman",
breaks = seq(-1, 1, length.out = 51),
col = cm.colors(50))
## spearman with legend
heatmapMRIaggr(MRIaggr.Pat1_red, param = c("MASK_T2_FLAIR_t2","DWI_t0","TTP_t0","MTT_t0"),
las = 1, type = "image.plot", cex = 0.75, method = "spearman",
breaks = seq(-1, 1, length.out = 51),
col = cm.colors(50))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.