powered by
creates 3d visualization of xpm data with scatter plot.
plot_xpm_3d(xpm_data, reversescale = FALSE, point_size = 2)
a plotly object
a xpm object (from read_xpm()) or list containing parsed objects.
read_xpm()
whether to reverse the color scale; default is FALSE
the size of the points in the scatter plot; default is 2
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