merge_template {bubbleHeatmap}R Documentation

Merge Nightingale Figure Templates with User Data

Description

Custom merge function to help users align their data with the template datasets containing the variable location information for the Nightingale figures. User datasets should contain the variables representing bubble color and size, and a key column to merge rows with the template. The key column should either be named "ukbb_id" and contain the UK Biobank Field ID for each variable (e.g. "23474") or named "ckb_id" and contain the China Kadoorie Biobank variable ID, (e.g. "nmr_bohbut").

Usage

merge_template(data, id)

Arguments

data

User dataset

id

Name of key column, either "ukbb_id" or "ckb_id"

Value

Merged dataset

Examples

data <- merge_template(cetp, "ckb_id")

[Package bubbleHeatmap version 0.1.1 Index]