Alias for plot_dicom() designed for composable ggplot2 pipelines.
Arguments
- x
Path to a DICOM file, a
"dicom_pixels"matrix/array, or a"dicom_series"object.- frame
Integer slice/frame index (1-based) when
xis multi-frame or a"dicom_series". Default is1L.- window
Window preset (
"auto","brain","lung","bone","abdomen", etc.) orc(center, width). Default is"auto".- ...
Additional arguments passed to
plot_dicom().
Value
A ggplot2::ggplot object.
Examples
dcm_file <- system.file("extdata", "example.dcm", package = "dicomtk")
ggdicom(dcm_file, palette = "viridis")
