Learn R Programming

xvm (version 0.0.2)

plot_xpm_3d: generate 3d scatter plot from xpm data

Description

creates 3d visualization of xpm data with scatter plot.

Usage

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

Value

a plotly object

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

Examples

Run this code
library(xvm)
xpm_file_path <- system.file("extdata/gibbs.xpm", package = "xvm")
xpm_data <- read_xpm(xpm_file_path)
plot_xpm_3d(xpm_data) # plot 3D scatter plot from xpm file

Run the code above in your browser using DataLab