display.legend | R Documentation |
The display.legend
function displays in an image the list
of requested RoI and their associated color.
display.legend(
struct = NULL,
roi.name = NULL,
roi.sname = NULL,
roi.idx = NULL,
lwd = 1,
cex = 1,
displayed.roi.name = NULL,
bg = "black",
text.col = "white"
)
struct |
"struct" class object. |
roi.name |
Vector of exact names of the RoI in the |
roi.sname |
Vector of names or parts of names of the RoI in the
|
roi.idx |
Vector of indices of the RoI that belong to the |
lwd |
Line thickness, defaults to 1 |
cex |
Font size, default to 1. |
displayed.roi.name |
Vector. If different from |
bg |
color of the background. |
text.col |
color of the legend text. |
roi.name
, roi.sname
, and roi.idx
indicates the RoI to display. If all three are set to NULL, all RoI are selected.
Returns display of the RoI names and their associated color in the active graphics window.
# loading of toy-patient objects
patient <- toy.load.patient (modality = c("rtstruct"), dxyz = c (5, 5, 5))
S <- patient$rtstruct[[1]]
display.legend (struct = S, roi.idx = 2:10, lwd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.