gneiss: Draw A Chart As Quartz Does

Description Usage Arguments Examples

View source: R/gneiss.R

Description

Draw a chart by Gneisschart from data.frame.

Usage

1
2
3
4
gneiss(data, label, type = "line", title = "",
  credit = "Made with Gneisschart", data_source = "", y_ticks = 4,
  y_prefix = "", y_suffix = "", y_limits = NULL, width = NULL,
  height = NULL)

Arguments

data

data.frame

label

column name of labels

type

chart type(s). "line", "column", "bargrid" or "scatter"

title

title of the graph

credit

credit of the graph (e.g. "Made with Gneisschart")

data_source

source of the data (Something like "Data: Bureau of Labor Statistics" or "Data compiled by Factset")

y_ticks

number of ticks of y-axis

y_prefix

prefix unit of y-axis (e.g. $)

y_suffix

suffix unit of y-axis (e.g. k)

y_limits

lower and upper limits of y-axis (if not specified, this will be automatically calculated)

width

width of the graph

height

height of the graph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
a <- data.frame(
  names          = c("apples", "oranges"),
  juicyness      = c(5.5, 23),
  color          = c(10.2, 10),
  favor          = c(6.1, 13),
  travelablility = c(3.8, 7),
  stringsAsFactors = FALSE
)

gneiss(a, label = "names")

gneiss(a, label = "names", type = "column", credit = "Made w/o Chartbuilder")

gneiss(a, label = "names", type = c("line","column"), title = "This is the very example chart!")

yutannihilation/gneisschart documentation built on May 4, 2019, 7:45 p.m.