rough_bar: rough_bar

Description Usage Arguments

View source: R/rough_bar.R

Description

rough_bar

rough_barh

rough_donut

rough_pie

rough_line

rough_scatter

rough_stackedbar

Usage

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
rough_bar(
  data = NULL,
  labels = NULL,
  values = NULL,
  axisFontSize = "1rem",
  axisRoughness = 0.5,
  axisStrokeWidth = 0.5,
  bowing = 0,
  color = "skyblue",
  fillStyle = "hachure",
  fillWeight = 0.5,
  font = "Gaegu",
  highlight = "coral",
  innerStrokeWidth = 1,
  interactive = TRUE,
  labelFontSize = "1rem",
  legend = "",
  padding = 0.1,
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  xLabel = NULL,
  yLabel = NULL,
  type = "Bar",
  width = NULL,
  height = NULL,
  elementId = NULL
)

rough_barh(
  data = NULL,
  labels = NULL,
  values = NULL,
  axisFontSize = "1rem",
  axisRoughness = 0.5,
  axisStrokeWidth = 0.5,
  bowing = 0,
  color = "skyblue",
  fillStyle = "hachure",
  fillWeight = 0.5,
  font = "Gaegu",
  highlight = "coral",
  innerStrokeWidth = 1,
  interactive = TRUE,
  labelFontSize = "1rem",
  legend = "",
  padding = 0.1,
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  xLabel = NULL,
  yLabel = NULL
)

rough_donut(
  data = NULL,
  labels = NULL,
  values = NULL,
  bowing = 0,
  color = "skyblue",
  fillStyle = "hachure",
  fillWeight = 0.5,
  font = "Gaegu",
  highlight = "coral",
  innerStrokeWidth = 1,
  interactive = TRUE,
  legend = TRUE,
  legendPosition = "right",
  padding = 0.1,
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  type = "Donut",
  width = NULL,
  height = NULL,
  elementId = NULL
)

rough_pie(
  data = NULL,
  labels = NULL,
  values = NULL,
  bowing = 0,
  color = "skyblue",
  fillStyle = "hachure",
  fillWeight = 0.85,
  font = "Gaegu",
  highlight = "coral",
  innerStrokeWidth = 0.75,
  interactive = TRUE,
  legend = TRUE,
  legendPosition = "right",
  padding = 0.1,
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  type = "Pie"
)

rough_line(
  data,
  y,
  axisFontSize = "1rem",
  axisRoughness = 0.5,
  axisStrokeWidth = 0.5,
  bowing = 0,
  circle = TRUE,
  circleRadius = 10,
  circleRoughnes = 2,
  color = "blue",
  fillStyle = "hachure",
  fillWeight = 0.5,
  font = "Gaegu",
  interactive = TRUE,
  labelFontSize = "1rem",
  legend = TRUE,
  legendPosition = "right",
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  xLabel = NULL,
  yLabel = NULL,
  width = NULL,
  height = NULL,
  elementId = NULL
)

rough_scatter(
  x,
  y,
  axisFontSize = "1rem",
  axisRoughness = 0.5,
  axisStrokeWidth = 0.5,
  bowing = 0,
  color = "blue",
  colorvar = NULL,
  curbZero = FALSE,
  fillStyle = "hachure",
  fillWeight = 0.5,
  font = "Gaegu",
  highlight = "coral",
  highlightLabel = NULL,
  innerStrokeWidth = 1,
  interactive = TRUE,
  labelFontSize = "1rem",
  radius = 8,
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  xLabel = NULL,
  yLabel = NULL,
  width = NULL,
  height = NULL,
  elementId = NULL
)

rough_stackedbar(
  data,
  labels,
  axisFontSize = "1rem",
  axisRoughness = 0.5,
  axisStrokeWidth = 0.5,
  bowing = 0,
  colors = NULL,
  fillStyle = NULL,
  fillWeight = 0.5,
  font = 0,
  highlight = "coral",
  innerStrokeWidth = 1,
  interactive = TRUE,
  labelFontSize = "1rem",
  padding = 0.1,
  roughness = 1,
  simplification = 0.2,
  stroke = "black",
  strokeWidth = 1,
  title = NULL,
  titleFontSize = "1rem",
  tooltipFontSize = "0.95rem",
  xLabel = NULL,
  yLabel = NULL,
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

data

in bar barh donut pie is a categorical variable.in stackedbar is a dataframe class

labels

labels

values

values

axisFontSize

: Font-size for axes' labels. Default: '1rem'.

axisRoughness

: Roughness for x & y axes. Default: 0.5.

axisStrokeWidth

: Stroke-width for x & y axes. Default: 0.5.

bowing

: Chart bowing. Default: 0.

color

: Color for each bar. Default: 'skyblue'.

fillStyle

: Bar fill-style. Should be one of fillStyles shown above.

fillWeight

: Weight of inner paths' color. Default: 0.5.

highlight

: Color for each bar on hover. Default: 'coral'.

innerStrokeWidth

: Stroke-width for paths inside bars. Default: 1.

interactive

: Whether or not chart is interactive. Default: true.

labelFontSize

: Font-size for axes' labels. Default: '1rem'.

legend

: Whether or not to add legend. Default: true.

padding

: Padding between bars. Default: 0.1.

roughness

: Roughness level of chart. Default: 1.

simplification

: Chart simplification. Default 0.2.

stroke

: Color of bars' stroke. Default: black.

strokeWidth

: Size of bars' stroke. Default: 1.

title

: Chart title. Optional.

titleFontSize

: Font-size for chart title. Default: '1rem'.

tooltipFontSize

: Font-size for tooltip. Default: '0.95rem'.

xLabel

: Label for x-axis.

yLabel

: Label for y-axis.

legendPosition

: Position of legend. Should be either 'left' or 'right'. Default: 'right'.

circle

: Whether or not to add circles to chart. Default: true.

circleRadius

: Radius of circles. Default: 10.

highlightLabel

: If input data is csv or tsv, this should be a column representing what value to display on hover. Otherwise, (x, y) values will be shown on hover.

radius

: Circle radius. Default: 8.

font:

Font-family to use. You can use 0 or gaegu to use Gaegu, or 1 or indie flower to use Indie Flower. Or feed it something else. Default: Gaegu.

circleRoughness

: Roughness of circles. Default: 2.

colorVar

: If input data is csv or tsv, this should be an ordinal column with which to color points by.

burbZero

: Whether or not to force (x, y) axes to (0, 0). Default: false.


tidyss/rroughviz documentation built on April 26, 2020, 8:26 a.m.