Description Usage Arguments Details See Also
View source: R/view_xifti_volume.R
Visualize the subcortical data in a "xifti"
using a series of 2D
slices (based on overlay
) or an interactive widget
(based on papaya
).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | view_xifti_volume(
xifti,
structural_img = "MNI",
color_mode = "auto",
zlim = NULL,
colors = NULL,
structural_img_colors = gray(0:255/280),
title = NULL,
idx = 1,
plane = c("axial", "sagittal", "coronal"),
n_slices = 9,
slices = NULL,
widget = FALSE,
fname = FALSE,
fname_suffix = c("names", "idx"),
fname_sub = FALSE,
legend_fname = "[fname]_legend",
legend_ncol = NULL,
legend_alllevels = FALSE,
legend_embed = NULL,
digits = NULL,
cex.title = NULL,
ypos.title = 0,
xpos.title = 0,
text_color = "white",
bg = NULL,
width = NULL,
height = NULL,
...
)
view_cifti_volume(
xifti,
structural_img = "MNI",
color_mode = "auto",
zlim = NULL,
colors = NULL,
structural_img_colors = gray(0:255/280),
title = NULL,
idx = 1,
plane = c("axial", "sagittal", "coronal"),
n_slices = 9,
slices = NULL,
widget = FALSE,
fname = FALSE,
fname_suffix = c("names", "idx"),
legend_fname = "[fname]_legend",
legend_ncol = NULL,
legend_alllevels = FALSE,
legend_embed = NULL,
digits = NULL,
cex.title = NULL,
text_color = "white",
bg = NULL,
width = NULL,
height = NULL,
...
)
viewCIfTI_volume(
xifti,
structural_img = "MNI",
color_mode = "auto",
zlim = NULL,
colors = NULL,
structural_img_colors = gray(0:255/280),
title = NULL,
idx = 1,
plane = c("axial", "sagittal", "coronal"),
n_slices = 9,
slices = NULL,
widget = FALSE,
fname = FALSE,
fname_suffix = c("names", "idx"),
legend_fname = "[fname]_legend",
legend_ncol = NULL,
legend_alllevels = FALSE,
legend_embed = NULL,
digits = NULL,
cex.title = NULL,
text_color = "white",
bg = NULL,
width = NULL,
height = NULL,
...
)
viewcii_volume(
xifti,
structural_img = "MNI",
color_mode = "auto",
zlim = NULL,
colors = NULL,
structural_img_colors = gray(0:255/280),
title = NULL,
idx = 1,
plane = c("axial", "sagittal", "coronal"),
n_slices = 9,
slices = NULL,
widget = FALSE,
fname = FALSE,
fname_suffix = c("names", "idx"),
legend_fname = "[fname]_legend",
legend_ncol = NULL,
legend_alllevels = FALSE,
legend_embed = NULL,
digits = NULL,
cex.title = NULL,
text_color = "white",
bg = NULL,
width = NULL,
height = NULL,
...
)
|
xifti |
A |
structural_img |
The structural MRI image on which to overlay the
subcortical plot. Can be a file name, |
color_mode |
(Optional) |
zlim |
(Optional) Controls the mapping of values to each
color in |
colors |
(Optional) |
structural_img_colors |
Colors to use for the background image. These
will be assigned in order from lowest to highest value with equal spacing
between the colors. ( |
title |
Optional title(s) for the plot(s). It will be printed at the top. Default: To use a custom title(s), use a length 1 character vector (same title for
each plot) or length If the title is non-empty but does not appear, try lowering |
idx |
The time/column index of the data to display. If If |
plane |
The plane to display for the slices:
|
n_slices |
The number of slices to display. Default: |
slices |
Which slices to display. If provided, this argument will
override |
widget |
Create an interactive widget using Note that the widget can only display one |
fname, fname_suffix |
Save the plot(s) (and color legend if applicable)? If If If neither of the cases above apply, a png image will be written for each
|
fname_sub |
Add "_sub" to the end of the names of the files being saved?
Default: |
legend_fname |
Save the color legend? Since the legend is the same
for each |
legend_ncol |
Number of columns in color legend. If
|
legend_alllevels |
Show all label levels in the color legend? If
|
legend_embed |
Should the colorbar be embedded in the plot?
It will be positioned at the bottom. Default: Only applies if the color bar is used (sequential or diverging data). The color legend (qualitative data) cannot be embedded at the moment. |
digits |
The number of digits for the colorbar legend ticks.
If |
cex.title |
Font size multiplier for the title. |
ypos.title, xpos.title |
The positioning of the title can be finicky,
especially when using an R Markdown document interactively in which case it
appears too high in the plot. Use these arguments to nudge the title up
or down ( |
text_color |
Color for text in title and colorbar legend. Default:
|
bg |
Background color. |
width, height |
The dimensions of the plot, in pixels. Only affects saved
images (if Currently, there is no way to control the dimensions of the plot if working interactively in RStudio or creating a knitted R Markdown document. The default appears to be a wide aspect ratio. |
... |
Additional arguments to pass to |
Note that color_mode
, zlim
, and colors
only affect the
color scale of the data values whereas structural_img_colors
only
affects the color scale of the background image.
Currently, the color-related arguments only affect the 2D slice view. The color limits and palette must be edited using the widget controls once it's rendered.
Other commonly-used functions:
is.cifti()
,
read_cifti()
,
resample_cifti()
,
smooth_cifti()
,
view_xifti_surface()
,
write_cifti()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.