plot_xpm: plot xpm data

View source: R/plot_functions.R

plot_xpmR Documentation

plot xpm data

Description

plot xpm data using ggplot2

Usage

plot_xpm(xpm_data, interpolate = FALSE)

Arguments

xpm_data

a xpm object returned by read_xpm

interpolate

logical indicating whether to use raster interpolation (TRUE) or discrete tiles (FALSE). Default is FALSE.

Value

a ggplot2 object

Examples


library(xvm)
xpm_file_path <- system.file("extdata/gibbs.xpm", package = "xvm")
xpm_data <- read_xpm(xpm_file_path)
plot_xpm(xpm_data) # plot the xpm data using plot_xpm() function


xvm documentation built on June 8, 2025, 10:37 a.m.