plot_scatter.Rd
Scatter plot for two-dimensional embeddings
plot_scatter(embed_use, meta_data, label_name,
xy_names=c('tSNE1', 'tSNE2'), no_guides = FALSE,
cols = NULL,
point_size = 0.5, point_alpha=1,
base_size = 12, do_points = TRUE, do_density = FALSE, border_col='gray',
legend_pos='right', legend_dir='vertical', nrow.legend=NULL)
an object named "Seurat", "maxtrix" or "dgCMatrix". The object of class "Seurat" must include slot "scale.data".
an optional positive integer, specify the number of features to be extracted.
the size of point in the scatter plot.
the text size in the plot.
whether display the legend.
colors used in the plot.
the point size of scatter plot.
the transparency of the plot.
the base text size.
Plot point plot.
Plot density plot
the border color in the plot.
the position of legend.
the direction of legend.
the number of rows of legend.
Nothing
Return a ggplot2 object.
nothing
None
embed_use <- cbind(1:100, sin((1:100)*pi/2))
meta_data <- data.frame(cluster=factor(rep(1:2, each=50)))
plot_scatter(embed_use, meta_data, label_name='cluster')