Learn R Programming

rreg (version 0.2.1)

regrad: Dartboard diagram for precision

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

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:

  • x-axis 1st column: The names of the different institutions

  • y-axis 2nd column: The value to show completeness

Examples

Run this code
# NOT RUN {
# 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")

# }

Run the code above in your browser using DataLab