plotCor | R Documentation |
Correlation Plotting Plot a correlation bewteen any two columns from any data frame(s) or named vectors
plotCor(
x,
y,
xCol = FALSE,
yCol = FALSE,
xlab = "",
ylab = "",
title = "",
scale = FALSE,
showP = FALSE
)
x |
Data frame with rownames or named vector containing data to be plotted on the x-axis |
y |
Data frame with rownames or named vector containing data to be plotted on the y-axis |
xCol |
Character indicating column name in x of data to be plotted on the x-axis. Leave FALSE if x is a named vector. |
yCol |
Character indicating column name in y of data to be plotted on the y-axis. Leave FALSE if y is a named vector. |
xlab |
Character indicating x-axis label |
ylab |
Character indicating y-axis label |
title |
Character indicating title of plot |
scale |
Should the data be z-score scaled? Default is FALSE. |
showP |
Boolean indicating if the p-value should also be displayed (Default = FALSE) |
Scatter plot of data with line of best fit and R-value of correlation. Note that x and y data are paired based on the rownames of the data frame or names of the named vector. Non-paired values will not be plotted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.