| plot_cor | R Documentation | 
Draw a correlation plot
plot_cor(
  data,
  x,
  y,
  xlab = x,
  ylab = y,
  r = T,
  p = T,
  xpos = 0.7,
  ypos = 0.7,
  x2pos = xpos,
  y2pos = ypos - 0.1,
  method = "pearson",
  round = 3,
  rsize = 4,
  low.limit = F,
  ci = T
)
| data | a dataframe to be used | 
| x | a variable for x-axis | 
| y | a variable for y-axis | 
| xlab | x-axis label | 
| ylab | y-axis label | 
| r | correlation coefficient | 
| p | P-value | 
| xpos | relative location of correlation coefficient | 
| ypos | relative location of correlation coefficient | 
| x2pos | relative x location of P-value | 
| y2pos | relative y location of P-value | 
| method | Pearson or Spearman test | 
| round | round | 
| rsize | rsize | 
| low.limit | low.limit | 
| ci | confidence interval | 
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.