Plot a dataset and trajectory in 3 dimensions
plot_cells_3d(
cds,
dims = c(1, 2, 3),
reduction_method = c("UMAP", "tSNE", "PCA", "LSI", "Aligned"),
color_cells_by = "cluster",
genes = NULL,
show_trajectory_graph = TRUE,
trajectory_graph_color = "black",
trajectory_graph_segment_size = 5,
norm_method = c("log", "size_only"),
color_palette = NULL,
color_scale = "Viridis",
cell_size = 25,
alpha = 1,
min_expr = 0.1
)
cell_data_set to plot
numeric vector that indicates the dimensions used to create the 3D plot, by default it is the first three dimensions.
string indicating the reduction method to plot.
the cell attribute (e.g. the column of colData(cds)) to map to each cell's color. Default is cluster.
a gene name or gene id to color the plot by.
a logical used to indicate whether to graph the principal graph backbone. Default is TRUE.
the color of graph backbone. Default is black.
numeric indicating the width of the graph backbone. Default is 5.
string indicating the method used to transform gene expression when gene markers are provided. Default is "log". "size_only" is also supported.
List of colors to pass to plotly for coloring cells by categorical variables. Default is NULL. When NULL, plotly uses default colors.
The name of the color scale passed to plotly for coloring cells by numeric scale. Default is "Viridis".
numeric indicating the size of the point to be plotted. Default is 25.
numeric indicating the alpha value of the plotted cells. Default is 1.
numeric indicating the minimum marker gene value to be colored. Default is 0.1.
a plotly plot object
# NOT RUN {
plot_cells_3d(cds, markers=c("Rbfox3, Neurod1", "Sox2"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab