corr_scatter_hex: corr_scatter_hex Hexagonalfor x and y with correlation and lm...

Description Usage Arguments Author(s) Examples

View source: R/plot_corr.R

Description

corr_scatter_hex Hexagonalfor x and y with correlation and lm recommend for massive and compact x and y

Usage

1
corr_scatter_hex(x, y, cor_m, x_lab, y_lab, bin_cnt, file_name)

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

bin_cnt

bins splict for x and y axis

file_name

Name of output figure with format suffix

Author(s)

yzeng

Examples

1
2
3
x <- rnorm(10000)
y <- rnorm(10000)
corr_scatter_hex(x, y, "pearson", "var_1", "var_2", 50, "test_corr_scatter_hex.pdf")

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