# loading of toy-patient objects (decrease dxyz and increase beam.nb for
# better result)
step <- 4
patient <- toy.load.patient (modality = "rtdose", roi.name = "",
dxyz = rep (step, 3), beam.nb = 3)
D <- patient$rtdose[[1]]
# Dose at maximum dose
origin <- get.xyz.from.index (which.max (D$vol3D.data), D)
display.plane (bottom = D, view.coord = origin[3],
bg = "#0000ff")
# Dose profile at x = origin[1] and z = origin[3].
l <- get.line (vol = D, origin = origin,
orientation = c (0, 1, 0), interpolate = FALSE)
plot (l$y, l$value, type = "l")
grid ()
# Dose profile at y = origin[2] and z = origin[3].
l <- get.line (D, origin = origin,
orientation = c (1, 0, 0), interpolate = FALSE)
plot (l$s, l$value, type = "l")
grid ()
Run the code above in your browser using DataLab