View source: R/Visualization.R
myFeaturePlot | R Documentation |
Function to plot a feature
myFeaturePlot( df = NULL, feature = NULL, text_size = 20, point_size = 2, alpha = 1, low_color = "gray", high_color = "tomato", legend_position = "right", legend_point_size = NULL, order = TRUE, ... )
df |
Data frame containing the PCA dimensions to plot and the feature to use as colors. PCA data columns should be named as "Dim1" and "Dim2" |
feature |
Feature to use as color scale. |
text_size |
Plot text size |
point_size |
Plot point size |
alpha |
Point transparency |
low_color |
Scale low color |
high_color |
Scale high color |
legend_position |
The position of the legend. It can take values as "top", bottom", "left", "right", or "none. |
legend_point_size |
Legend point size. |
order |
Whether the points should be ordered. |
... |
Arguments passed to other methods. |
A ggplot object containing the feature plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.