diff --git a/R/legTools.R b/R/legTools.R index ce8ed089fd74b452ff563f7d5fc7befc1e1f6f8d..c0e84bd9be14097927bd1e5e10e67ce3e9e4e42b 100644 --- a/R/legTools.R +++ b/R/legTools.R @@ -1005,10 +1005,10 @@ NULL #' data(potatoYield2) #' str(potatoYield2) #' -#' lot(sumYield/4~variety, data=potatoYield2, -#' groups=loc, type="o", -#' ylab=expression(Yield~(t~ha^{-1})), -#' xlab="Variety") +#' xyplot(sumYield/4~variety, data=potatoYield2, +#' groups=loc, type="o", +#' ylab=expression(Yield~(t~ha^{-1})), +#' xlab="Variety") #' NULL diff --git a/man/cassavaYield.Rd b/man/cassavaYield.Rd index 286b7221910bd30610ff7e84a8e499cec3439c92..47eaf16b976943fcfd7b50ca56332560df5f672c 100644 --- a/man/cassavaYield.Rd +++ b/man/cassavaYield.Rd @@ -21,10 +21,13 @@ These data are from an experiment done by The Brazilian (t/ha) was recorded in each experimental unit. \itemize{ - \item \code{block} a categorical unordered factor with 4 levels. - \item \code{variety} a categorical unordered factor with 6 - levels. - \item \code{yield} cassava yield (t/ha). + +\item \code{block} a categorical unordered factor with 4 levels. + +\item \code{variety} a categorical unordered factor with 6 levels. + +\item \code{yield} cassava yield (t/ha). + } } \examples{ diff --git a/man/coffeeFert.Rd b/man/coffeeFert.Rd index 9632a965d942c237f721ab8542ee6056673d9136..3352cd09e8ad6f91d6ae3a0fc485bcf1f33e37ac 100644 --- a/man/coffeeFert.Rd +++ b/man/coffeeFert.Rd @@ -22,13 +22,19 @@ These data are from a \eqn{2^3} factorial experiment branches in coffee trees. \itemize{ - \item \code{N} content of nitrogen in the fertilizer (low/high). - \item \code{P} content of phosphorus in the fertilizer (low/high). - \item \code{K} content of potassium in the fertilizer (low/high). - \item \code{block} an unordered factor representing the blocks + +\item \code{N} content of nitrogen in the fertilizer (low/high). + +\item \code{P} content of phosphorus in the fertilizer (low/high). + +\item \code{K} content of potassium in the fertilizer (low/high). + +\item \code{block} an unordered factor representing the blocks used. - \item \code{branches} an integer variable, the number of dry + +\item \code{branches} an integer variable, the number of dry branches in a coffee the. + } } \details{ diff --git a/man/cornYield.Rd b/man/cornYield.Rd index 79457d6afe9309b1ce9b1c7163763d6b045afb8f..2ca17abe6b117188fd6849ecbaac6572dd9aca5f 100644 --- a/man/cornYield.Rd +++ b/man/cornYield.Rd @@ -18,11 +18,17 @@ These data are from an \eqn{2^3} factorial experiment (K) on corn yield in a randomized block design. \itemize{ - \item \code{block} a factor with 4 levels. - \item \code{N} low (-1) and high (+1) levels of nitrogen. - \item \code{P} low (-1) and high (+1) levels of phosporus. - \item \code{K} low (-1) and high (+1) levels of potassium. - \item \code{yield} corn yield (ton/ha). + +\item \code{block} a factor with 4 levels. + +\item \code{N} low (-1) and high (+1) levels of nitrogen. + +\item \code{P} low (-1) and high (+1) levels of phosporus. + +\item \code{K} low (-1) and high (+1) levels of potassium. + +\item \code{yield} corn yield (ton/ha). + } } \examples{ diff --git a/man/cornYield2.Rd b/man/cornYield2.Rd index c4f825233b6002cc72778c93ee0b7f1a306d169a..2eacfc1bc662851ea080cb528f34f8871ee7ceff 100644 --- a/man/cornYield2.Rd +++ b/man/cornYield2.Rd @@ -22,11 +22,17 @@ These data are from an axial 3 factorial experiment plus presence of limestone. \itemize{ - \item \code{N} content of nitrogen in the fertilizer. - \item \code{P} content of phosphorus in the fertilizer. - \item \code{K} content of potassium in the fertilizer. - \item \code{limestone} presence (1) or absence of limestone (0). - \item \code{acid} mean of corn yield in 16 locations (ton/ha). + +\item \code{N} content of nitrogen in the fertilizer. + +\item \code{P} content of phosphorus in the fertilizer. + +\item \code{K} content of potassium in the fertilizer. + +\item \code{limestone} presence (1) or absence of limestone (0). + +\item \code{acid} mean of corn yield in 16 locations (ton/ha). + } } \details{ diff --git a/man/cottonFert.Rd b/man/cottonFert.Rd index 6a718f3aa3256acf21e2da066c9e5f95997fc943..de1bb95845cff132639583ddec46ecf5bf68c601 100644 --- a/man/cottonFert.Rd +++ b/man/cottonFert.Rd @@ -3,7 +3,8 @@ \docType{data} \name{cottonFert} \alias{cottonFert} -\title{A set of experiments in different locations studing NK on cotton} +\title{A set of experiments in different locations studing NK on + cotton} \format{a \code{data.frame} with 100 records and 4 variables.} \source{ Pimentel Gomes, F. (2009). Curso de EstatÃstica Experimental @@ -20,14 +21,18 @@ These data is a set of experiments carried out in control. \itemize{ - \item \code{trt} unordered factor, treatment that consist of 4 - cells from a 2^2 factorial design (\eqn{N\times K}) and a - control. - \item \code{rept} integer, indexes experimental units. - \item \code{loc} an unordered factor representing the locations - where the experiment was carried out. - \item \code{y} numeric, the response variable of the - experiment. The text book didn't give details. + +\item \code{trt} unordered factor, treatment that consist of 4 cells + from a 2^2 factorial design (\eqn{N\times K}) and a control. + +\item \code{rept} integer, indexes experimental units. + +\item \code{loc} an unordered factor representing the locations where + the experiment was carried out. + +\item \code{y} numeric, the response variable of the experiment. The + text book didn't give details. + } } \examples{ diff --git a/man/defoliation.Rd b/man/defoliation.Rd index d6ea686b6656a2322a38fadc52b0bcfb9bd5170c..14b074e2bb9569f0568c65001536a1f2807b5fbd 100644 --- a/man/defoliation.Rd +++ b/man/defoliation.Rd @@ -3,14 +3,14 @@ \docType{data} \name{defoliation} \alias{defoliation} -\title{Bolls in cotton as function of artifitial defoliation} +\title{Bolls in cotton as function of artificial defoliation} \format{a \code{data.frame} with 125 records and 4 variables.} \usage{ data(defoliation) } \description{ This dataset contais the result of a real experiment to - evaluate the effect of artifitial defoliation in combination with + evaluate the effect of artificial defoliation in combination with phenological stage of occurence on the production of cotton represented by the number of bolls produced at the end of the crop cycle. The experiment is a \eqn{5\times 5} factorial with 5 @@ -21,15 +21,21 @@ This dataset contais the result of a real experiment to variance less than the sample mean). \itemize{ -\item \code{phenol} a categorical ordered factor with 5 levels - that represent the phenological stages of the cotton plant in - which defoliation was applied. + +\item \code{phenol} a categorical ordered factor with 5 levels that + represent the phenological stages of the cotton plant in which + defoliation was applied. + \item \code{defol} a numeric factor with 5 levels that represents the artifical level of defoliation (percent in leaf area removed with scissors) applied for all leaves in the plant. -\item \code{rept} index for each experimenal unit in each treatment cell. + +\item \code{rept} index for each experimenal unit in each treatment + cell. + \item \code{bolls} the number of bolls produced (count variable) evaluated at harvest. + } } \details{ diff --git a/man/filterCake.Rd b/man/filterCake.Rd index 8d859f0ae444722d9de14ac21e8d19a7058a9e45..1867586ae5b5b67506cb1706ac2ccf8ce98e3d6e 100644 --- a/man/filterCake.Rd +++ b/man/filterCake.Rd @@ -19,13 +19,18 @@ These data are from an \eqn{2^2} factorial experiment fertilization. \itemize{ - \item \code{block} a factor with 4 levels. - \item \code{mineral} low (-1) and high (+1) levels of mineral + +\item \code{block} a factor with 4 levels. + +\item \code{mineral} low (-1) and high (+1) levels of mineral fertilization. - \item \code{cake} low (-1) and high (+1) levels of fetilization - with filter cake. - \item \code{y} some response variable. The text book doesn't give - any information. + +\item \code{cake} low (-1) and high (+1) levels of fetilization with + filter cake. + +\item \code{y} some response variable. The text book doesn't give any + information. + } } \examples{ diff --git a/man/mangoAcidity.Rd b/man/mangoAcidity.Rd index 2185e702f067566c1ce760c5a76e3a10e4ea95df..52cd5fa4c121841f61354e36b3044903155cfaba 100644 --- a/man/mangoAcidity.Rd +++ b/man/mangoAcidity.Rd @@ -21,11 +21,16 @@ These data are from an observational study along 3 years Novermber, December and January. \itemize{ - \item \code{variety} a categorical variable with 6 levels that + +\item \code{variety} a categorical variable with 6 levels that represents mango varieties studied. - \item \code{year} the year of harvesting. - \item \code{month} the month of harvesting. - \item \code{acid} mean of the acidity determined in 3 fruits. + +\item \code{year} the year of harvesting. + +\item \code{month} the month of harvesting. + +\item \code{acid} mean of the acidity determined in 3 fruits. + } } \examples{ diff --git a/man/plowing.Rd b/man/plowing.Rd index 3330108ceb25433beb9f604f9c414ef22b4129e9..9af9b022c7f8bb9983276754ede7647ef18f64ed 100644 --- a/man/plowing.Rd +++ b/man/plowing.Rd @@ -22,9 +22,13 @@ These data are from an experiment done by the engineer units for each factor level in each block. \itemize{ - \item \code{block} a categorical unordered factor with 6 levels. - \item \code{plow} a categorical unordered factor with 2 levels. - \item \code{yield} corn yield (kg in 200 m\eqn{^2} of area). + +\item \code{block} a categorical unordered factor with 6 levels. + +\item \code{plow} a categorical unordered factor with 2 levels. + +\item \code{yield} corn yield (kg in 200 m\eqn{^2} of area). + } } \examples{ diff --git a/man/potatoYield.Rd b/man/potatoYield.Rd index 39588d387b36392e93ffd45ba231c855bb7e75f2..416c7135e404946fab568a4148724209adb1669e 100644 --- a/man/potatoYield.Rd +++ b/man/potatoYield.Rd @@ -19,10 +19,13 @@ These data are from an experiment done by the engineer (t/ha) was recorded in each experimental unit. \itemize{ - \item \code{block} a categorical unordered factor with 4 levels. - \item \code{variety} a categorical unordered factor with 8 - levels. - \item \code{yield} potato yield (t/ha). + +\item \code{block} a categorical unordered factor with 4 levels. + +\item \code{variety} a categorical unordered factor with 8 levels. + +\item \code{yield} potato yield (t/ha). + } } \examples{ diff --git a/man/sugarcaneYield.Rd b/man/sugarcaneYield.Rd index c5fa0523d8f5495aeb00db6fc71615c9039eb475..38910e1ccbc27acd87efc6e101228d37a4eb1466 100644 --- a/man/sugarcaneYield.Rd +++ b/man/sugarcaneYield.Rd @@ -19,10 +19,13 @@ These data are from an experiment done by The West São (kg/plot) was recorded in each experimental unit. \itemize{ - \item \code{block} a categorical unordered factor with 4 levels. - \item \code{variety} a categorical unordered factor with 7 - levels. - \item \code{yield} sugarcane yield (kg/plot). + +\item \code{block} a categorical unordered factor with 4 levels. + +\item \code{variety} a categorical unordered factor with 7 levels. + +\item \code{yield} sugarcane yield (kg/plot). + } } \examples{ diff --git a/man/sugarcaneYield2.Rd b/man/sugarcaneYield2.Rd index 40272aabfac363a7e2382659cca2b77a05bab4ef..6479a1f392c7e6f7df9c727635cc9f867c7048fb 100644 --- a/man/sugarcaneYield2.Rd +++ b/man/sugarcaneYield2.Rd @@ -18,14 +18,18 @@ These data are from an experiment done in a latin square experimental unit. \itemize{ - \item \code{row} the rows of the latin square that controls in - one dimention. A categorical unordered factor with 5 levels. - \item \code{col} the columns of the latin square that controls in - one dimention perpendicular to the previus. A categorical - unordered factor with 5 levels. - \item \code{variety} a categorical unordered factor with 5 - levels. - \item \code{yield} sugarcane yield (kg/plot). + +\item \code{row} the rows of the latin square that controls in one + dimention. A categorical unordered factor with 5 levels. + +\item \code{col} the columns of the latin square that controls in one + dimention perpendicular to the previus. A categorical unordered + factor with 5 levels. + +\item \code{variety} a categorical unordered factor with 5 levels. + +\item \code{yield} sugarcane yield (kg/plot). + } } \examples{ diff --git a/man/sugarcaneYield3.Rd b/man/sugarcaneYield3.Rd index 48a9945d9b93f950c23bfe9bc13974093845cc04..ce7179df94b2482b1534c2b706c886e57e5e902b 100644 --- a/man/sugarcaneYield3.Rd +++ b/man/sugarcaneYield3.Rd @@ -18,16 +18,21 @@ These data are from an experiment done in a latin square experimental unit. \itemize{ - \item \code{row} the rows of the latin square that controls in - one dimention. A categorical unordered factor with 6 levels. - \item \code{col} the columns of the latin square that controls in - one dimention perpendicular to the previus. A categorical - unordered factor with 6 levels. - \item \code{fertil} a categorical unordered factor with 6 - levels that is the fertilization strategy applied. These levels - are a result of treatment cells in a three incomplete factorial + +\item \code{row} the rows of the latin square that controls in one + dimention. A categorical unordered factor with 6 levels. + +\item \code{col} the columns of the latin square that controls in one + dimention perpendicular to the previus. A categorical unordered + factor with 6 levels. + +\item \code{fertil} a categorical unordered factor with 6 levels that + is the fertilization strategy applied. These levels are a result + of treatment cells in a three incomplete factorial arrangrment. See detais for more information. - \item \code{yield} sugarcane yield (kg/plot). + +\item \code{yield} sugarcane yield (kg/plot). + } } \details{ @@ -58,7 +63,8 @@ levelplot(yield~row+col, colors=brewer.pal(n=11, name="Spectral")))+ layer(with(sugarcaneYield3, panel.text(x=row, y=col, - label=sprintf("\%s\\n\%0.2f", fertil, yield)))) + label=sprintf("\%s\\n\%0.2f", + fertil, yield)))) aggregate(yield~row, data=sugarcaneYield3, FUN=mean) aggregate(yield~col, data=sugarcaneYield3, FUN=mean) diff --git a/man/sugarcaneYield4.Rd b/man/sugarcaneYield4.Rd index 93ff7e03adc8b270f250fbdf9603f718b05c2207..d86df2ed284bcaed511dc6b781d9aec4ac990e2b 100644 --- a/man/sugarcaneYield4.Rd +++ b/man/sugarcaneYield4.Rd @@ -17,12 +17,19 @@ These data are from an \eqn{3^3} factorial experiment studing the effect of NPK on the yield of sugar cane. \itemize{ + \item \code{block} a local control factor with 3 levels. + \item \code{rept} factor with 2 levels. + \item \code{N} integer coded nitrogen levels (0, 1, 2). + \item \code{P} integer coded phosphorus levels (0, 1, 2). + \item \code{K} integer coded potassium levels (0, 1, 2). + \item \code{yield} sugar cane yield (ton/ha). + } } \details{ diff --git a/man/vinasseFert.Rd b/man/vinasseFert.Rd index def3ee5bcde5361b33d18d242fe70ee7b192b901..592c58f7bcda015b6762e48b2b129e3724d216f6 100644 --- a/man/vinasseFert.Rd +++ b/man/vinasseFert.Rd @@ -19,13 +19,18 @@ These data are from an \eqn{2^2} factorial experiment fertilization. \itemize{ - \item \code{block} a factor with 4 levels. - \item \code{mineral} low (-1) and high (+1) levels of mineral + +\item \code{block} a factor with 4 levels. + +\item \code{mineral} low (-1) and high (+1) levels of mineral fertilization. - \item \code{vinasse} low (-1) and high (+1) levels of fetilization - with vinasse. - \item \code{y} some response variable. The text book doesn't give - any information. + +\item \code{vinasse} low (-1) and high (+1) levels of fetilization + with vinasse. + +\item \code{y} some response variable. The text book doesn't give any + information. + } } \examples{ diff --git a/man/wgPigs.Rd b/man/wgPigs.Rd index 5efbb505e2b01be6f723391fff87bffd2dd3200f..4478034b86c4b490f5e050352026d4b9e6361e6a 100644 --- a/man/wgPigs.Rd +++ b/man/wgPigs.Rd @@ -13,18 +13,20 @@ Pimentel Gomes, F. (2009). Curso de EstatÃstica Experimental data(wgPigs) } \description{ -This is an artifial dataset corresponding a experiment - to study the effect of feeding type (factor with 4 categorical - nominal levels) in pig weight gain. The experiment was a - randomized complete design with five experimental units per +This is an artificial data set corresponding a + experiment to study the effect of feeding type (factor with 4 + categorical nominal levels) in pig weight gain. The experiment + was a randomized complete design with five experimental units per treatment level. The experimental unit was a pig. The response - measured was weight gain from the beggining to the end of the + measured was weight gain from the beginning to the end of the experiment. \itemize{ - \item \code{ft} feeding type, a categorical factor with 4 - levels. - \item \code{wg} weight gain (kg). + +\item \code{ft} feeding type, a categorical factor with 4 levels. + +\item \code{wg} weight gain (kg). + } } \examples{ diff --git a/man/wgPigs2.Rd b/man/wgPigs2.Rd index 697f2abd3a8b7f6ed2b907e3aa81bfc5c9142629..54cdb89c754ef45dc4635596487d401f215bc7a1 100644 --- a/man/wgPigs2.Rd +++ b/man/wgPigs2.Rd @@ -22,15 +22,20 @@ This is an artifial dataset corresponding a experiment experiment. \itemize{ - \item \code{litter} a categorical factor with 4 levels that + +\item \code{litter} a categorical factor with 4 levels that represents the rows of the lattin square design and control for the differences among litters. - \item code{size} a categorical ordered variable that represents the + +\item code{size} a categorical ordered variable that represents the columns of latin square desing and control for the weight of the animals at the beggining of the experiment. - \item \code{age} age of the animal (days) when castration was + +\item \code{age} age of the animal (days) when castration was done. \code{controls} are the animals without castration. - \item \code{wg} weight gain (kg) after 252 days. + +\item \code{wg} weight gain (kg) after 252 days. + } } \examples{