calc_correlation_plot: Get the correlation data for plotting.

View source: R/calc-correlation-plot.R

calc_correlation_plotR Documentation

Get the correlation data for plotting.

Description

Perform a correlation analysis on an 'id' for a 'dataset'. By default, the correlation will be against the same dataset, but a different dataset can be specified with 'dataset_correlate'. Return x and y values for plotting.

Usage

calc_correlation_plot(
  dataset,
  id,
  dataset_correlate,
  id_correlate,
  intcovar = NULL,
  use_qr = TRUE,
  backfill_NA = TRUE
)

Arguments

dataset

The dataset object

id

The unique id in the dataset.

dataset_correlate

The dataset to correlate against, dataset if INVALID or NULL.

id_correlate

The identifier from the correlate dataset.

intcovar

The interactive covariate.

use_qr

'TRUE' to use qr decomposition.

backfill_NA

'TRUE' if we need to impute, we backfill the NAs.

Value

A named 'list' with keys of 'data' and 'datatypes'.


churchill-lab/qtl2api documentation built on April 17, 2025, 3:27 a.m.