View source: R/plotting_functions.R
hist_2D | R Documentation |
Plot 2d histogram given data. Either rownames or colnames will be x values, and the data will be y values.
hist_2D(
data,
data_style = "row",
xlab = "Digits",
ylab = "Frequency",
title = "2D Barplot",
hline = NA,
hline_name = "",
abline = NA,
width = 0.5
)
data |
The 1D dataframe to be plotted. |
data_style |
The style of input
|
xlab |
x-axis label. Defaulted to 'digits'. |
ylab |
y-axis label. Defaulted to 'frequency'. |
title |
Plot title. Defaulted to '2D Histogram'. |
hline |
Specifies the y-intercept value if a horizontal line is desired. Defaulted to NA. |
hline_name |
The title of the horizontal line added. Defaulted to ”. |
abline |
A |
width |
The width of the bars. Defaulted to 0.5. |
A ggplot instance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.