View source: R/scatterplot_generator.R
scatterplot_generator | R Documentation |
scatterplot_generator
will pull information from AGED
results to plot gene expression for each sample for a selected gene. The value in the original dataset will be plotted on the y-axis, and the user's choice of data taken from either the W matrix, H matrix, or W * H will be plotted on the y-axis. The column or row taken from the H or W matrix is chosen by which metagene the selected gene is the most prevalent in.
scatterplot_generator( aged_results, data, gene, clv = 0, transformation = 0, blind = TRUE, x_axis = "wh", color = NULL, shape = NULL, reg = TRUE, reg_color = "black", xy = TRUE, xy_color = "gray", ellipse = TRUE )
aged_results |
The results of a successful call to |
data |
The original dataset that was plugged into the initial call of |
gene |
A string value perfectly corresponding to a row value of the original dataset, representing a gene name. |
clv |
A numerical value |
transformation |
A numerical value that determines whether or not a log or VST transformation should be done on the original dataset. A value of 0 indicates no transformation, a value of 1 indicates a log transformation using log1p, a value of 2 indicates a VST transformation using varianceStabilizingTransformation If this argument is used, it should be "0", "1" or "2" only. Any other value will assume no transformation. For FaStaNMF, untransformed data should be log-transformed or VST-transformed. |
blind |
If a VST is to be done, this boolean value determines whether it is blind or not. |
x_axis |
A string value representing what data should be plotted. The value should be one of: "h" or "wh" only. |
color |
A string vector representation of size |
shape |
A string vector representation of size |
reg |
A boolean value representing whether a solid, linear regression line should be added to the plot. |
reg_color |
If a linear regression line is added to the scatterplot, this string value should represent the color of that line. |
xy |
A boolean value representing whether or not a dotted x = y should be added to the plot. This is typically not applicable to "h". |
xy_color |
If an x = y line is added to the scatterplot, this string value should represent the color of that line. |
ellipse |
A boolean value representing whether or not ellipses should be added to the scatterplot. These ellipses will create normal confidence ellipses based on the "color" vector parameter. |
Returns a scatterplot containing the desired gene expression values. This function also plots it for you.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.