-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
54 lines (37 loc) · 2.47 KB
/
README
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
flufflyball.plot R Documentation
Plot beautiful sun graphs like a fluffly ball.
Description
Produce a stylized sun-like plot of the given (grouped) values. The length of the line corresponds to normalized values sweeped around clockwise according to coordinates provided by user.
Usage
flufflyball.plot (id,group,coord,values,...)
Arguments
id
A character vector where ids corresponds to the id name of each observation.
group
A numeric or integer vector where group corresponds to the group of each observation
coord
A numeric or integer vector where coord corresponds to coordinates of each observation
values
A numeric or integer vector where values corresponds to the values of each observation to be represented in the plot
filter
A natural number for a threshold of the minimal value to be represented in the plot. Default: filter=0
cex.circle
A numerical value giving the amount by which the centered circle should be magnified for . Default:cex.circle=6
plot.legend
Logical. If TRUE plots a legend. Default:plot.legend=TRUE
cex.legend
A numerical value giving the amount by which the legend should be magnified for . Default:cex.legend=6
exclude.na
Logical. If TRUE exclude all observations with any NA. Default:exclude.na=TRUE
Value
Returns a vector for unique "ids" ('id' levels) filtered by parameter 'filter' and plotted.
Author(s)
Tiago A. de Souza ([email protected]) & github.com/tiagoantonio/flufflyball
Examples
flufflyball.plot(id=sample(LETTERS,5000,replace = TRUE), group=sample(1:4,5000, replace=TRUE), coord=sample(1:1000,5000, replace=TRUE), values=sample (0:100,5000, replace=TRUE))
flufflyball.plot(id=sample(letters,2000,replace = TRUE), group=sample(1:4,2000, replace=TRUE), coord=seq(1:2000), values=seq(1:2000), cex.circle = 9, cex.legend=1.1)
flufflyball.plot(id=sample(LETTERS,50,replace = TRUE), group=rep(1,50), coord=sample(1:100,50), values=rnorm(50,mean=100,sd=50), cex.circle = 20, cex.legend = 1.1)
flufflyball.plot(id=sample(letters,5000,replace = TRUE), group=sample(1:4,5000, replace=TRUE), coord=sample(1:1000,5000, replace=TRUE), values=sample (0:100,5000, replace=TRUE), cex.circle=15, plot.legend=FALSE, filter=80)
flufflyball.plot(id=sample(LETTERS,1000,replace = TRUE), group=sample(1:2,1000, replace=TRUE), coord=seq(1:1000), values=sort(rnorm(1000,mean=100,sd=7), decreasing = TRUE))
## The function is currently defined as
fluffy.ball.plot=function(id,group,coord,values, filter=0, plot.legend=FALSE, cex.circle=6, cex.legend=0.5, exclude.na=TRUE)