regrad {rreg} | R Documentation |
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
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
# 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")