smoothxtrim {plgraphics} | R Documentation |
The range in which smooth lines are drawn should be restricted in order to avoid the ill determined parts at both ends. The proportion of suppressed values is determined as a function of the number of observations.
smoothxtrim(n, c=1.5)
n |
number of observations |
c |
tuning parameter: how rapidly should the result decrease
with |
proportion of x values for which the smoothline will not be shown on both ends. Equals \ 2^(log(n)/c) / n
W. Stahel
smoothxtrim(50) t.n <- c(5,10,20,100,1000) t.n * smoothxtrim(t.n)