smoothxtrim: Adjust range for smooth lines to number of observations

View source: R/pl.R

smoothxtrimR Documentation

Adjust range for smooth lines to number of observations

Description

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.

Usage

smoothxtrim(n, c=2)

Arguments

n

number of observations

c

tuning parameter: how rapidly should the result decrease with n?

Value

proportion of x values for which the smoothline will not be shown on both ends. Equals \ 1.6^(log10(n)*c) / n

Author(s)

W. Stahel

Examples

  smoothxtrim(50)
  t.n <- c(5,10,20,100,1000)
  t.n * smoothxtrim(t.n)

plgraphics documentation built on Oct. 19, 2023, 3 p.m.