JitterUniqueValues {DataVisualizations} | R Documentation |
Jitters Unique Values
Description
Jitters Unique Values for Visualizations
Usage
JitterUniqueValues(Data, Npoints = 20,
min = 0.99999, max = 1.00001)
Arguments
Data |
[1:n] vector of data |
Npoints |
number of jittered points generated from the m unique values of the datavector Data |
min |
minimum value of jittering |
max |
maximum value of jittering |
Details
min and max are either multiplied or added to data depending on the range of values. If Npoints==2, then only two values per unique of Data is jittered otherwise additional values are generated.Npoints==1 does not jitter the values but gives the unique values back.
Value
vector of DataJitter[1:(m+Npoints-1)] jittered values
Author(s)
Michael Thrun
See Also
used for example in MDplot
Examples
data=c(rep(1,10),rep(0,10),rep(100,10))
JitterUniqueValues(data,Npoints=1)
JitterUniqueValues(data,Npoints=2)
DataJitter=JitterUniqueValues(data,Npoints=20)
[Package DataVisualizations version 1.3.2 Index]