fig_halfcircles: Circle Chart for Data Comparison

Description Usage Arguments See Also Examples

View source: R/figure_halfcircles.R

Description

Show all datas in a sequential way, and emphasis the special one.

Usage

1
2
3
4
fig_halfcircles(rawdata, title, subtitle, caption, palette = "Oranges")

fig_halfcircles_emph(rawdata, title, subtitle, caption,
  colours = c("white", "orange"))

Arguments

rawdata

A data.frame contains the data to be plot. Three columns are needed here, 'values': numeric, provide datas; 'types': used to map colours to each data, character or factor; 'labels': characters to describe the correspond data.

title

character value defines the title.

subtitle

character value defines the subtitle.

caption

character value defines the caption.

palette

Palette applied to the plot.

colours

A vector of length two, contains colours which applied to different data.

See Also

fig_halfcircles_emph() for references.

fig_halfcircles() for references.

Examples

 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
rawdata <- data.frame(
  values = c(220, 313, 393.4, 423.4, 583.4, 623.4, 823.4,
             934.5, 985.6),
  types = letters[1:9],
  labels = c(
    'proto type', 'fine tuning', 'model optimization', 'model training', 'business research',
    'file research', 'data collection(spyder<e3><80><81>document literature<e3><80><81>online<e3><80><81>offline)',
    'analysis system development(UI design, data base design, model deploy, model apply)', 'data clean'),
  stringsAsFactors = FALSE
)
fig_halfcircles(rawdata, title = 'Time Consuming in Data Analysis Projects', subtitle = 'hours',
                caption = 'Note: these datas are all made out of whole cloth.')


rawdata <- data.frame(
  values = c(220, 313, 393.4, 423.4, 583.4, 623.4, 823.4,
             934.5, 985.6),
  types = c('a','a','a','a','a','a', 'b', 'a', 'a'),
  labels = c(
    'proto type', 'fine tuning', 'model optimization', 'model training', 'business research',
    'file research', 'data collection(spyder<e3><80><81>document literature<e3><80><81>online<e3><80><81>offline)',
    'analysis system development(UI design, data base design, model deploy, model apply)', 'data clean'),
  stringsAsFactors = FALSE
)
fig_halfcircles_emph(rawdata, title = 'Time Consuming in Data Analysis Projects', subtitle = 'hours',
                     caption = 'Note: these datas are all made out of whole cloth.')

purplezippo/ggpkt documentation built on May 21, 2019, 10:34 a.m.