View source: R/deprecated_standardchart.R
Chart | R Documentation |
Chart
generates standard charts
Chart(
y = NULL,
type = "Column",
annotations = NULL,
fit.type = "None",
fit.ignore.last = FALSE,
fit.line.type = "dot",
fit.line.width = 1,
fit.line.name = "Fitted",
transpose = FALSE,
subset = NULL,
weights = NULL,
title = "",
title.font.family = NULL,
title.font.color = NULL,
title.font.size = 16,
subtitle = "",
subtitle.font.family = NULL,
subtitle.font.color = NULL,
subtitle.font.size = 12,
footer = "",
footer.font.family = NULL,
footer.font.color = NULL,
footer.font.size = 8,
footer.wordwrap = TRUE,
footer.wordwrap.nchar = 150,
colors = NULL,
colors.reverse = FALSE,
colors.custom.color = NA,
colors.custom.gradient.start = NA,
colors.custom.gradient.end = NA,
colors.custom.palette = NA,
fit.line.colors = NULL,
fit.line.colors.reverse = FALSE,
fit.line.colors.custom.color = NA,
fit.line.colors.custom.gradient.start = NA,
fit.line.colors.custom.gradient.end = NA,
fit.line.colors.custom.palette = NA,
opacity = NULL,
background.fill.color = rgb(255, 255, 255, maxColorValue = 255),
background.fill.opacity = 1,
charting.area.fill.color = rgb(255, 255, 255, maxColorValue = 255),
charting.area.fill.opacity = 1,
legend.show = TRUE,
legend.fill = rgb(255, 255, 255, maxColorValue = 255),
legend.fill.color = legend.fill,
legend.fill.opacity = 1,
legend.border.color = rgb(44, 44, 44, maxColorValue = 255),
legend.border.line.width = 0,
legend.font.color = NULL,
legend.font.family = NULL,
legend.font.size = 10,
legend.position = "right",
legend.ascending = NA,
margin.top = NULL,
margin.bottom = NULL,
margin.left = NULL,
margin.right = NULL,
margin.inner.pad = NULL,
y.title = "",
y.title.font.color = NULL,
y.title.font.family = NULL,
y.title.font.size = 12,
y.line.width = 0,
y.line.color = rgb(0, 0, 0, maxColorValue = 255),
y.tick.marks = "",
y.tick.mark.length = 5,
y.bounds.minimum = NULL,
y.bounds.maximum = NULL,
y.tick.distance = NULL,
y.zero = TRUE,
y.zero.line.width = 0,
y.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),
y.position = "left",
y.data.reversed = FALSE,
y.grid.width = 1,
y.grid.color = rgb(225, 225, 225, maxColorValue = 255),
y.tick.show = TRUE,
y.tick.suffix = "",
y.tick.prefix = "",
y.tick.decimals = NULL,
y.tick.format.manual = "",
y.hovertext.decimals = NULL,
y.hovertext.format.manual = "",
y.tick.angle = NULL,
y.tick.font.color = NULL,
y.tick.font.family = NULL,
y.tick.font.size = 10,
x.title = "",
x.title.font.color = NULL,
x.title.font.family = NULL,
x.title.font.size = 12,
x.line.width = 0,
x.line.color = rgb(0, 0, 0, maxColorValue = 255),
x.tick.marks = "",
x.tick.mark.length = 5,
x.bounds.minimum = NULL,
x.bounds.maximum = NULL,
x.tick.distance = NULL,
x.zero.line.width = 0,
x.zero.line.color = rgb(44, 44, 44, maxColorValue = 255),
x.position = "bottom",
x.data.reversed = FALSE,
x.grid.width = 1,
x.grid.color = rgb(225, 225, 225, maxColorValue = 255),
x.tick.show = TRUE,
x.tick.suffix = "",
x.tick.prefix = "",
x.tick.decimals = NULL,
x.tick.format.manual = "",
x.hovertext.decimals = NULL,
x.hovertext.format.manual = "",
x.tick.angle = NULL,
x.tick.font.color = NULL,
x.tick.font.family = NULL,
x.tick.font.size = 10,
x.tick.label.autoformat = TRUE,
x.tick.label.wordwrap = TRUE,
wordwrap.nchar = 21,
series.marker.show = "none",
series.marker.colors = NULL,
series.marker.colors.reverse = FALSE,
series.marker.colors.custom.color = NA,
series.marker.colors.custom.gradient.start = NA,
series.marker.colors.custom.gradient.end = NA,
series.marker.colors.custom.palette = NA,
series.marker.opacity = 1,
series.marker.size = 6,
series.marker.border.width = 1,
series.marker.border.colors = NULL,
series.marker.border.colors.custom.color = NA,
series.marker.border.colors.custom.gradient.start = NA,
series.marker.border.colors.custom.gradient.end = NA,
series.marker.border.colors.custom.palette = NA,
series.marker.border.colors.reverse = FALSE,
series.marker.border.opacity = 1,
series.line.width = NULL,
series.line.colors = NULL,
series.line.colors.reverse = FALSE,
series.line.colors.custom.color = NULL,
series.line.colors.custom.gradient.start = NA,
series.line.colors.custom.gradient.end = NA,
series.line.colors.custom.palette = NA,
series.line.opacity = 1,
tooltip.show = TRUE,
modebar.show = FALSE,
global.font.family = "Arial",
global.font.color = rgb(44, 44, 44, maxColorValue = 255),
rows.to.ignore = "Total, NET, SUM",
cols.to.ignore = "Total, NET, SUM",
bar.gap = 0.15,
data.label.show = FALSE,
data.label.font.family = NULL,
data.label.font.size = 10,
data.label.font.color = NULL,
data.label.decimals = 2,
data.label.prefix = "",
data.label.suffix = "",
data.label.threshold = NULL,
data.label.position = "top middle",
data.label.max.plot = 50,
pie.order = "initial",
pie.groups.order = "initial",
pie.subslice.colors = NULL,
pie.subslice.colors.reverse = FALSE,
pie.subslice.colors.custom.color = NA,
pie.subslice.colors.custom.gradient.start = NA,
pie.subslice.colors.custom.gradient.end = NA,
pie.subslice.colors.custom.palette = NA,
pie.subslice.colors.repeat = TRUE,
pie.border.color = rgb(255, 255, 255, maxColorValue = 255),
pie.inner.radius = 70,
pie.show.percentages = FALSE,
z.title = "",
colorbar.title = "",
trend.lines = FALSE,
scatter.group.indices = "",
scatter.group.labels = "",
scatter.var.from.matrix = TRUE,
scatter.colors.as.group = FALSE,
scatter.x.var = NULL,
scatter.y.var = NULL,
scatter.labels.var = NULL,
scatter.sizes.var = NULL,
scatter.colors.var = NULL,
us.date.format = NULL,
logos = NULL,
logo.size = 0.5
)
y |
A table, matrix, vector or data frame. |
type |
Character; type of chart. Can be "Area", "Stacked Area", "100% Stacked Area", "Bar", "Stacked Bar", "100 "Column", "Stacked Column", "100 "Pie", "Labeled Scatterplot", "Labeled Bubbleplot", "Radar". |
annotations |
Optional character matrix which contains annotations to be included on chart. The matrix should be the same dimension as the input matrix |
fit.type |
Character; type of line of best fit. Can be one of "None", "Linear" or "Smooth" (loess local polynomial fitting). |
fit.ignore.last |
Boolean; whether to ignore the last data point in the fit. |
fit.line.type |
Character; One of "solid", "dot", "dash, "dotdash", or length of dash "2px", "5px". |
fit.line.width |
Numeric; Line width of line of best fit. |
fit.line.name |
Character; Name of the line of best fit, which will appear in the hovertext. |
transpose |
Logical; should the final output be transposed? |
subset |
An optional vector specifying a subset of observations to be plotted. Only used when |
weights |
Not implemented. An optional vector of sampling weights. Only used when |
title |
Character; chart title. |
title.font.family |
Character; title font family. Can be "Arial Black", "Arial", "Comic Sans MS", "Courier New", "Georgia", "Impact", "Lucida Console", "Lucida Sans Unicode", "Marlett", "Symbol", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana", "Webdings" |
title.font.color |
Title font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
title.font.size |
Title font size; default = 10. |
subtitle |
Character |
subtitle.font.family |
Character; subtitle font family |
subtitle.font.color |
subtitle font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
subtitle.font.size |
subtitle font size |
footer |
Character |
footer.font.family |
Character; footer font family |
footer.font.color |
footer font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
footer.font.size |
footer font size |
footer.wordwrap |
Logical; whether the footer text should be wrapped. |
footer.wordwrap.nchar |
Number of characters (approximately) in each line of the footer when |
colors |
Character; a vector containing one or more named colors from grDevices OR one or more specified hex value colors OR a single named palette from grDevices, RColorBrewer, colorspace, or colorRamps. |
colors.reverse |
Logical; if the order of the colors should be reversed. |
colors.custom.color |
Character; a single color which is used if |
colors.custom.gradient.start |
Character; starting color of gradient if |
colors.custom.gradient.end |
Character; last color of gradient if |
colors.custom.palette |
Character; comma separated list of colors to be used if |
fit.line.colors |
Character; a vector containing one or more named colors from grDevices OR one or more specified hex value colors OR a single named palette from grDevices, RColorBrewer, colorspace, or colorRamps. |
fit.line.colors.reverse |
Logical; if the order of the colors should be reversed. |
fit.line.colors.custom.color |
Character; a single color which is used if |
fit.line.colors.custom.gradient.start |
Character; starting color of gradient if |
fit.line.colors.custom.gradient.end |
Character; last color of gradient if |
fit.line.colors.custom.palette |
Character; comma separated list of colors to be used if |
opacity |
Opacity of area fill colors as an alpha value (0 to 1). |
background.fill.color |
Background color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
background.fill.opacity |
Background opacity as an alpha value (0 to 1). |
charting.area.fill.color |
Charting area background color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
charting.area.fill.opacity |
Charting area background opacity as an alpha value (0 to 1). |
legend.show |
Logical; show the legend. |
legend.fill |
Same as |
legend.fill.color |
Legend fill color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
legend.fill.opacity |
Legend fill opacity as an alpha value (0 to 1). |
legend.border.color |
Legend border color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
legend.border.line.width |
Width in pixels of the border around the legend. 0 = no border. |
legend.font.color |
Legend font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
legend.font.family |
Character; legend font family. |
legend.font.size |
Legend font size. |
legend.position |
Where the legend will be placed; can be "left" or "right" of plot. |
legend.ascending |
Logical; TRUE for ascending, FALSE for descending. By default, we set it to to FALSE if the chart is stacked and TRUE otherwise. |
margin.top |
Margin between plot area and the top of the graphic in pixels |
margin.bottom |
Margin between plot area and the bottom of the graphic in pixels |
margin.left |
Margin between plot area and the left of the graphic in pixels |
margin.right |
Margin between plot area and the right of the graphic in pixels |
margin.inner.pad |
Padding in pixels between plot proper and axis lines |
y.title |
Character, y-axis title; defaults to chart input values; to turn off set to "FALSE". |
y.title.font.color |
y-axis title font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, max = 255)). |
y.title.font.family |
Character; y-axis title font family |
y.title.font.size |
y-axis title font size |
y.line.width |
y-axis line in pixels, 0 = no line |
y.line.color |
y-axis line color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
y.tick.marks |
Character; whether and where to show tick marks on the y axis. Can be "outside", "inside", "none" |
y.tick.mark.length |
Length of tick marks in pixels. |
y.bounds.minimum |
Minimum of range for plotting; NULL = no manual range set. Must be less than y.bounds.maximum |
y.bounds.maximum |
Maximum of range for plotting; NULL = no manual range set. Must be greater than y.bounds.minimum |
y.tick.distance |
Tick mark distance. |
y.zero |
Whether the y-axis should include zero. |
y.zero.line.width |
Width in pixels of zero line; 0 = no zero line shown |
y.zero.line.color |
Color of horizontal zero line as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
y.position |
Character; set y-axis position; can be "left" or "right" |
y.data.reversed |
Logical; whether to reverse y-axis or not |
y.grid.width |
Width of y-grid lines in pixels; 0 = no line |
y.grid.color |
Color of y-grid lines as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
y.tick.show |
Whether to display the y-axis tick labels |
y.tick.suffix |
y-axis tick label suffix |
y.tick.prefix |
y-axis tick label prefix |
y.tick.decimals |
y-axis tick label decimal places |
y.tick.format.manual |
Overrides tick.prefix, suffix and decimals; See https://github.com/mbostock/d3/wiki/Formatting#numbers or https://docs.python.org/release/3.1.3/library/string.html#formatspec |
y.hovertext.decimals |
y-axis hover text decimal places |
y.hovertext.format.manual |
Overrides hovertext decimals; See https://github.com/mbostock/d3/wiki/Formatting#numbers or https://docs.python.org/release/3.1.3/library/string.html#formatspec |
y.tick.angle |
y-axis tick label angle in degrees. 90 = vertical; 0 = horizontal |
y.tick.font.color |
y-axis tick label font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
y.tick.font.family |
Character; y-axis tick label font family |
y.tick.font.size |
y-axis tick label font size |
x.title |
Character, x-axis title; defaults to chart input values; to turn off set to "FALSE". |
x.title.font.color |
x-axis title font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
x.title.font.family |
Character; x-axis title font family |
x.title.font.size |
x-axis title font size |
x.line.width |
x-axis line in pixels, 0 = no line |
x.line.color |
x-axis line color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
x.tick.marks |
Character; whether and where to show tick marks on the x-axis. Can be "outside", "inside", "none" |
x.tick.mark.length |
Length of tick marks in pixels. |
x.bounds.minimum |
Minimum of range for plotting; NULL = no manual range set. Must be less than x.bounds.maximum |
x.bounds.maximum |
Maximum of range for plotting; NULL = no manual range set. Must be greater than x.bounds.minimum |
x.tick.distance |
Tick mark distance in x-axis units between minimum and maximum for plotting; NULL = no manual range set. |
x.zero.line.width |
Width in pixels of zero line; 0 = no zero line shown |
x.zero.line.color |
Color of horizontal zero (origo) line as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
x.position |
Character; set x-axis position; can be "top" or "bottom" |
x.data.reversed |
Logical; whether to reverse x-axis or not |
x.grid.width |
Width of y-grid lines in pixels; 0 = no line |
x.grid.color |
Color of y-grid lines as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
x.tick.show |
Whether to display the x-axis tick labels |
x.tick.suffix |
x-axis tick label suffix |
x.tick.prefix |
x-axis tick label prefix |
x.tick.decimals |
x-axis tick label decimal places |
x.tick.format.manual |
Overrides tick.prefix, suffix and decimals; See https://github.com/mbostock/d3/wiki/Formatting#numbers |
x.hovertext.decimals |
X.axis hover text decimal places |
x.hovertext.format.manual |
Overrides hovertext decimals; See https://github.com/mbostock/d3/wiki/Formatting#numbers |
x.tick.angle |
x-axis tick label angle in degrees. 90 = vertical; 0 = horizontal |
x.tick.font.color |
X-axis tick label font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
x.tick.font.family |
Character; x-axis tick label font family |
x.tick.font.size |
x-axis tick label font size |
x.tick.label.autoformat |
Logical; whether to rotate and wrap long x-axis labels. |
x.tick.label.wordwrap |
Logical; whether to wrap long x-axis labels. |
wordwrap.nchar |
Integer; number of characters in each line when |
series.marker.show |
Can be "none", "automatic" or a vector referencing the plotly symbol dictionary using either numerics or strings. |
series.marker.colors |
Character; a vector containing one or more named colors from grDevices OR one or more specified hex value colors OR a single named palette from grDevices, RColorBrewer, colorspace, or colorRamps. |
series.marker.colors.reverse |
Logical; if the order of the colors should be reversed. |
series.marker.colors.custom.color |
Character; a single color which is used if |
series.marker.colors.custom.gradient.start |
Character; starting color of gradient if |
series.marker.colors.custom.gradient.end |
Character; last color of gradient if |
series.marker.colors.custom.palette |
Character; comma separated list of series.marker.colors to be used if |
series.marker.opacity |
Opacity for series markers as an alpha value (0 to 1). |
series.marker.size |
Size in pixels of marker |
series.marker.border.width |
Width in pixels of border/line around series markers; 0 is no line |
series.marker.border.colors |
Character; a vector containing one or more named colors from grDevices OR one or more specified hex value colors OR a single named palette from grDevices, RColorBrewer, colorspace, or colorRamps. |
series.marker.border.colors.custom.color |
Character; a single color which is used if |
series.marker.border.colors.custom.gradient.start |
Character; starting color of gradient if |
series.marker.border.colors.custom.gradient.end |
Character; last color of gradient if |
series.marker.border.colors.custom.palette |
Character; comma separated list of series.marker.border.colors to be used if |
series.marker.border.colors.reverse |
Logical; if the order of the colors should be reversed. |
series.marker.border.opacity |
Opacity of border/line around series markers as an alpha value (0 to 1). |
series.line.width |
Thickness, in pixels, of the series line |
series.line.colors |
Character; a vector containing one or more named colors from grDevices OR one or more specified hex value colors OR a single named palette from grDevices, RColorBrewer, colorspace, or colorRamps. |
series.line.colors.reverse |
Logical; if the order of the colors should be reversed. |
series.line.colors.custom.color |
Character; a single color which is used if |
series.line.colors.custom.gradient.start |
Character; starting color of gradient if |
series.line.colors.custom.gradient.end |
Character; last color of gradient if |
series.line.colors.custom.palette |
Character; comma separated list of series.line.colors to be used if |
series.line.opacity |
Opacity for series lines as an alpha value (0 to 1) |
tooltip.show |
Logical; whether to show a tooltip on hover. |
modebar.show |
Logical; whether to show the zoom menu buttons or not. |
global.font.family |
Character; font family for all occurrences of any font attribute for the chart unless specified individually. |
global.font.color |
Global font color as a named color in character format (e.g. "black") or an rgb value (e.g. #' rgb(0, 0, 0, maxColorValue = 255)). |
rows.to.ignore |
Character; comma separated string of row headings to exclude from the charting. |
cols.to.ignore |
Character; comma separated string of column headings to exclude from the charting. Does not apply to Labeled Scatterplot or Labeled Bubbleplot, which both need to have the correct columns prior to charting. |
bar.gap |
Chart proportion between each bar or column if using bar or column charts, or between each cluster of bars or columns. |
data.label.show |
Logical; whether to show data labels. |
data.label.font.family |
Character; font family for data label. |
data.label.font.size |
Font size for data label. |
data.label.font.color |
Font color as a named color in character format (e.g. "black") or an rgb value (e.g. rgb(0, 0, 0, maxColorValue = 255)). |
data.label.decimals |
Number of decimal places to show in data labels. |
data.label.prefix |
Character; prefix for data values. |
data.label.suffix |
Character; suffix for data values. |
data.label.threshold |
The proportion of the total range below which data labels should not be displayed. Only applicable for pie, bar and column charts. |
data.label.position |
Character; where to place the source data value in relation to the marker icon. Can be "top left", "top center", "top right", "middle left", "middle center", "middle right", "bottom left", "bottom center", "bottom right". Only applicable for line and area charts. |
data.label.max.plot |
Integer; the maximum number of labels to show on a Labeled Scatterplot. |
pie.order |
Character; "descending", "initial", or "alphabetical". |
pie.groups.order |
Character; "descending", "initial", or "alphabetical". |
pie.subslice.colors |
Character; a vector containing one or more named colors from grDevices OR one or more specified hex value colors OR a single named palette from grDevices, RColorBrewer, colorspace, or colorRamps. |
pie.subslice.colors.reverse |
Logical; if the order of pie.subslice.colors should be reversed. |
pie.subslice.colors.custom.color |
Character; a single color which is used if |
pie.subslice.colors.custom.gradient.start |
Character; starting color of gradient if |
pie.subslice.colors.custom.gradient.end |
Character; last color of gradient if |
pie.subslice.colors.custom.palette |
Character; comma separated list of pie.subslice.colors to be used if |
pie.subslice.colors.repeat |
Logical; if, when a grouped pie chart is displayed, the colors of the subslices should repeat by group, or be different throughout; defaults to TRUE. |
pie.border.color |
A single color for space around pie and between segments. |
pie.inner.radius |
The size of the inner radius of pie and donut charts as a proportion out of 100. defaults to 70. |
pie.show.percentages |
Whether to show percentages in pie and donut charts instead of original values. |
z.title |
Character; title of the bubble-size legend in labeled bubbleplots. |
colorbar.title |
Character; title of the colorscale bar, which is present in Scatterplots when |
trend.lines |
Boolean indicating whether to plot trend lines for multiple tables. |
scatter.group.indices |
Vector or text of comma-separated group indices corresponding to each row. |
scatter.group.labels |
Vector or text of comma-separated group labels. |
scatter.var.from.matrix |
Indicates whether additional chart properties for Scatterplot, Labeled Scatterplot or Labeled Bubbleplot should by read from the |
scatter.colors.as.group |
Boolean indicating whether |
scatter.x.var |
The index of the column of |
scatter.y.var |
The index of the column of |
scatter.labels.var |
The index of the column of |
scatter.sizes.var |
The index of the column of |
scatter.colors.var |
The index of the column of |
us.date.format |
Whether to apply the US convention when parsing dates. |
logos |
Optional list of images to be used to label scatterplot instead of the row names. It should be inputted as a comma-seperated list of URLs. |
logo.size |
Numeric controlling the size of the logos. |
z <- c(5, 6, 2, 1.5, 9, 2.2)
Chart(y = z, type = "Area")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.