make_hoverbox: Make Hoverbox

Description Usage Arguments Details Value

View source: R/make_hoverbox.R

Description

A hoverbox is a box of text that shows up when the cursor hovers over something. These can be useful when making interactive network plots of the HPO phenotypes because we can include a hoverbox that gives information and data associated with each phenotype.

Usage

1
2
3
4
5
6
make_hoverbox(
  phenotype,
  phenos_dataframe,
  columns = c("HPO_Id", "description"),
  labels = c("ID", "Description")
)

Arguments

phenotype

The phenotype you are making a hoverbox for

phenos_dataframe

The dataframe of phenotypes and parameters to be included

columns

chr vector of column names from the phenos_dataframe

labels

chr vector of labels for the selected columns

Details

This function expects a dataframe of with a "Phenotype" column that has the name of each phenotype. It must then include columns for all of the parameters you wish to include in the hoverbox.

Value

A nicely formatted string with newlines etc, to be used as a hoverbox


ovrhuman/HPOExplorer documentation built on Dec. 22, 2021, 5:21 a.m.