Skip to contents

creates 3d visualization of xpm data with scatter plot.

Usage

plot_xpm_3d(xpm_data, reversescale = FALSE, point_size = 2)

Arguments

xpm_data

a xpm object (from read_xpm()) or list containing parsed objects.

reversescale

whether to reverse the color scale; default is FALSE

point_size

the size of the points in the scatter plot; default is 2

Value

a plotly object

Examples

library(xvm)
xpm_file_path <- system.file("extdata/gibbs.xpm", package = "xvm")
xpm_data <- read_xpm(xpm_file_path)
#> Dimensions parsed: width = 32, height = 32, colors = 50
plot_xpm_3d(xpm_data) # plot 3D scatter plot from xpm file