regrad: Dartboard diagram for precision

Description Usage Arguments Details Note Source Examples

View source: R/regrad.R

Description

Create a dartboard style diagram to visualise precision. The middle point represent complete precision for example the objectives or plans. Imagine it's like a dartboard and the center means 100% precision or it could be completeness/achievement. The standard division of the proportion to show precision allocated in the diagram is 50%, 80% and 100%.

Usage

1
2
regrad(data, x, y, long = FALSE, title, size, pct1, pct2, col1, col2, col3,
  ...)

Arguments

data

Data set

x

Names of variable

y

Value of the variable

long

Split whitespaces of the variable names

title

Title for the plot

size

Size of the point

pct1

Percentage first pie proportion

pct2

Percentage second pie proportion

col1

Colour of the first pie proportion

col2

Colour of the second pie proportion

col3

Colour of the third pie proportion

...

Additional arguments

Details

These parameters should be specified:

Note

The ggplot2 package is required to run this function

Source

hfdata is a sample data which does not derive from a real data

Examples

1
2
3
4
5
# basic usage
library("rreg")
regrad(data = hfdata)
regrad(data = hfdata, title = "Plot title", long = TRUE)
regrad(hfdata, y= case1, title="Plot title", size=10, col1="blue", col2="green", col3="yellow")

ybkamaleri/rreg documentation built on March 26, 2018, 11:02 a.m.