The R Project SVN R

Rev

Rev 30915 | Rev 36816 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30915 Rev 32641
Line 8... Line 8...
8
}
8
}
9
\usage{
9
\usage{
10
sunflowerplot(x, y = NULL, number, log = "", digits = 6,
10
sunflowerplot(x, y = NULL, number, log = "", digits = 6,
11
              xlab = NULL, ylab = NULL, xlim = NULL, ylim = NULL,
11
              xlab = NULL, ylab = NULL, xlim = NULL, ylim = NULL,
12
              add = FALSE, rotate = FALSE,
12
              add = FALSE, rotate = FALSE,
13
              pch = 16, cex = 0.8, cex.fact = 1.5,
13
              pch = 16, cex = 0.8, cex.fact = 1.5, col = par("col"), bg = NA,
14
              size = 1/8, seg.col = 2, seg.lwd = 1.5, \dots)
14
              size = 1/8, seg.col = 2, seg.lwd = 1.5, \dots)
15
}
15
}
16
\arguments{
16
\arguments{
17
  \item{x}{numeric vector of \code{x}-coordinates of length \code{n},
17
  \item{x}{numeric vector of \code{x}-coordinates of length \code{n},
18
    say, or another valid plotting structure, as for
18
    say, or another valid plotting structure, as for
Line 38... Line 38...
38
  \item{cex}{numeric; character size expansion of center points
38
  \item{cex}{numeric; character size expansion of center points
39
    (s. \code{pch}).}
39
    (s. \code{pch}).}
40
  \item{cex.fact}{numeric \emph{shrinking} factor to be used for the
40
  \item{cex.fact}{numeric \emph{shrinking} factor to be used for the
41
    center points \emph{when there are flower leaves},
41
    center points \emph{when there are flower leaves},
42
    i.e., \code{cex / cex.fact} is used for these.}
42
    i.e., \code{cex / cex.fact} is used for these.}
-
 
43
  \item{col, bg}{colors for the plot symbols, passed to
-
 
44
    \code{\link{plot.default}}.}
43
  \item{size}{of sunflower leaves in inches, 1[in] := 2.54[cm].
45
  \item{size}{of sunflower leaves in inches, 1[in] := 2.54[cm].
44
    Default: 1/8\", approximately 3.2mm.}
46
    Default: 1/8\", approximately 3.2mm.}
45
  \item{seg.col}{color to be used for the \bold{seg}ments which make the
47
  \item{seg.col}{color to be used for the \bold{seg}ments which make the
46
    sunflowers leaves, see \code{\link{par}(col=)};
48
    sunflowers leaves, see \code{\link{par}(col=)};
47
    \code{col = "gold"} reminds of real sunflowers.}
49
    \code{col = "gold"} reminds of real sunflowers.}
Line 88... Line 90...
88
sunflowerplot(iris[, 3:4])
90
sunflowerplot(iris[, 3:4])
89
## Imitating  Chambers et al., p.109, closely:
91
## Imitating  Chambers et al., p.109, closely:
90
sunflowerplot(iris[, 3:4],cex=.2, cex.f=1, size=.035, seg.lwd=.8)
92
sunflowerplot(iris[, 3:4],cex=.2, cex.f=1, size=.035, seg.lwd=.8)
91
 
93
 
92
sunflowerplot(x=sort(2*round(rnorm(100))), y= round(rnorm(100),0),
94
sunflowerplot(x=sort(2*round(rnorm(100))), y= round(rnorm(100),0),
93
             main = "Sunflower Plot of Rounded N(0,1)")
95
              main = "Sunflower Plot of Rounded N(0,1)")
94
 
96
 
95
## A 'point process' {explicit 'number' argument}:
97
## A 'point process' {explicit 'number' argument}:
96
sunflowerplot(rnorm(100),rnorm(100), number=rpois(n=100,lambda=2),
98
sunflowerplot(rnorm(100),rnorm(100), number=rpois(n=100,lambda=2),
97
                        rotate=TRUE, main="Sunflower plot")
99
              rotate=TRUE, main="Sunflower plot", col = "blue4")
98
}
100
}
99
\keyword{hplot}
101
\keyword{hplot}
100
\keyword{smooth}
102
\keyword{smooth}
101
\keyword{nonparametric}
103
\keyword{nonparametric}