Learn R Programming

vDiveR (version 2.0.1)

plot_world_map: Geographical Distribution of Sequences Plot

Description

This function plots a world map and color the affected geographical region(s) from light (lower) to dark (higher), depends on the cumulative number of sequences. Aside from the plot, this function also returns a dataframe with 2 columns: 'Region' and 'Number of Sequences'. The input dataframe of this function is obtainable from metadata_extraction(), with NCBI Protein / GISAID (EpiFlu/EpiCoV/EpiPox/EpiArbo) FASTA file as input.

Usage

plot_world_map(metadata, base_size = 8)

Value

A list with 2 elements (a plot followed by a dataframe)

Arguments

metadata

a dataframe with 3 columns, 'ID', 'region', and 'date'

base_size

word size in plot

Examples

Run this code
geographical_plot <- plot_world_map(metadata)$plot
geographical_df <- plot_world_map(metadata)$df

Run the code above in your browser using DataLab