corr_scatter: corr_scatter scatterplot for x and y with correlation and lm...

Description Usage Arguments Author(s) Examples

View source: R/plot_corr.R

Description

corr_scatter scatterplot for x and y with correlation and lm information recommend for light x and y

Usage

1
corr_scatter(x, y, cor_m, x_lab, y_lab, title, fig_type)

Arguments

x, y

A numeric vector

cor_m

mehtod for correlation: "pearson", "kendall", "spearman"

x_lab

The x axis lable

y_lab

The y axis lable

title

Name of output figure

fig_type

The format of output figure, either "PNG/png" or "PDF/pdf"

Author(s)

yzeng

Examples

1
2
3
x <- rnorm(30)
y <- rnorm(30)
corr_scatter(x, y, "pearson", "var_1", "var_2", "test_corr_scatter_plot", "PDF")

yzeng-lol/meeqtl documentation built on Dec. 23, 2021, 9:10 p.m.