Learn R Programming

msarc (version 1.3.2)

msarc.copyColors: Copy msarc Color Palette

Description

If two or more msarc diagrams are presented, it may be helpful if GO categories that occur in multiple diagrams are the same color. This functions allow the copying of the color palette from one msarc object to another, so that when the second is plotted, it will resemble the first.

Usage

msarc.copyColors(target,source)

Arguments

target
an msarc object to load the color palette into.
source
an msarc object from which to get a color palette.

Value

  • the modified target msarc object.

Examples

Run this code
data(sample_initial,package="msarc")
data(sample_complete,package="msarc")
sample_initial <- msarc.copyColors(sample_initial,sample_complete)

Run the code above in your browser using DataLab