Learn R Programming

bubbleHeatmap (version 0.1.1)

merge_template: 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)

Value

Merged dataset

Arguments

data

User dataset

id

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

Examples

Run this code
data <- merge_template(cetp, "ckb_id")

Run the code above in your browser using DataLab