Last data update: 2014.03.03

R: Function to avoid plotting node labels
nodeplotblankR Documentation

Function to avoid plotting node labels

Description

Unlike, nodeplotdefault and nodeplotboot, this function does not return a function, but instead is provided directly to the nodelabf argument of plot_tree to ensure that node labels are not added to the graphic. Please note that you do not need to create or obtain the arguments to this function. Instead, you can provide this function directly to plot_tree and it will know what to do with it. Namely, use it to avoid plotting any node labels.

Usage

nodeplotblank(p, nodelabdf)

Arguments

p

(Required). The plot_tree graphic.

nodelabdf

(Required). The data.frame produced internally in link{plot_tree} to use as data for creating ggplot2-based tree graphics.

Value

The same input object, p, provided as input. Unmodified.

See Also

nodeplotdefault

nodeplotboot

plot_tree

Examples

data("esophagus")
plot_tree(esophagus)
plot_tree(esophagus, nodelabf=nodeplotblank)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(phyloseq)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/phyloseq/nodeplotblank.Rd_%03d_medium.png", width=480, height=480)
> ### Name: nodeplotblank
> ### Title: Function to avoid plotting node labels
> ### Aliases: nodeplotblank
> 
> ### ** Examples
> 
> data("esophagus")
> plot_tree(esophagus)
> plot_tree(esophagus, nodelabf=nodeplotblank)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>