barplot_rjs {RJSplot}R Documentation

Produce interactive bar plot(s).

Description

barplot_rjs produce interactive bar plot(s) of the given values.

Usage

barplot_rjs(height, xlab = "", ylab = "", ylim = NULL, cex = 1,
            plot = TRUE, jupyter = FALSE, dir = tempdir())

Arguments

height

either a vector or matrix of values describing the bars which make up the plot.

xlab

a title for the x axis.

ylab

a title for the y axis.

ylim

a vector with two values which specifies the Y minimun and maximun values in the representation.

cex

number indicating the amount by which plotting text and symbols should be scaled relative to the default.

plot

open resulting graph in your browser.

jupyter

embed the graph as an iframe into a Jupyter Notebook.

dir

a "character" string representing the directory where the graph will be saved.

Value

The function creates a folder in your computer with an HTML document named index.html which contains the graph. This file can be directly opened with your browser.

Author(s)

David Barrios and Carlos Prieto. Bioinformatics Service of Nucleus, University of Salamanca. See https://bioinfo.usal.es/

See Also

The ‘RJSplot’ Website: https://rjsplot.usal.es

dendrogram_rjs, densityplot_rjs, genomemap_rjs, heatmap_rjs, manhattan_rjs, network_rjs, scatterplot_rjs, symheatmap_rjs, wordcloud_rjs, boxplot_rjs, bubbles_rjs, hiveplot_rjs, piechart_rjs, barplot_rjs, tables_rjs, surface3d_rjs, scatter3d_rjs.

Examples

## Create an interactive barplot in a temporal directory of your local machine
## Live examples on https://rjsplot.usal.es
if(interactive()){
barplot_rjs(USArrests, "states", "arrests")
}

[Package RJSplot version 2.7 Index]