Last data update: 2014.03.03

R: Electrical Resistance of Kiwi Fruit
fruitohmsR Documentation

Electrical Resistance of Kiwi Fruit

Description

Data are from a study that examined how the electrical resistance of a slab of kiwifruit changed with the apparent juice content.

Usage

fruitohms

Format

This data frame contains the following columns:

juice

apparent juice content (percent)

ohms

electrical resistance (in ohms)

Source

Harker, F. R. and Maindonald J.H. 1994. Ripening of nectarine fruit. Plant Physiology 106: 165 - 171.

Examples

plot(ohms ~ juice, xlab="Apparent juice content (%)",ylab="Resistance (ohms)", data=fruitohms)
lines(lowess(fruitohms$juice, fruitohms$ohms), lwd=2)
pause()

require(splines)
attach(fruitohms)
plot(ohms ~ juice, cex=0.8, xlab="Apparent juice content (%)",
     ylab="Resistance (ohms)", type="n")
fruit.lmb4 <- lm(ohms ~ bs(juice,4))
ord <- order(juice)
lines(juice[ord], fitted(fruit.lmb4)[ord], lwd=2)
ci <- predict(fruit.lmb4, interval="confidence")
lines(juice[ord], ci[ord,"lwr"])
lines(juice[ord], ci[ord,"upr"])

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(DAAG)
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/DAAG/fruitohms.Rd_%03d_medium.png", width=480, height=480)
> ### Name: fruitohms
> ### Title: Electrical Resistance of Kiwi Fruit
> ### Aliases: fruitohms
> ### Keywords: datasets
> 
> ### ** Examples
> 
> plot(ohms ~ juice, xlab="Apparent juice content (%)",ylab="Resistance (ohms)", data=fruitohms)
> lines(lowess(fruitohms$juice, fruitohms$ohms), lwd=2)
> pause()
> 
> require(splines)
Loading required package: splines
> attach(fruitohms)
> plot(ohms ~ juice, cex=0.8, xlab="Apparent juice content (%)",
+      ylab="Resistance (ohms)", type="n")
> fruit.lmb4 <- lm(ohms ~ bs(juice,4))
> ord <- order(juice)
> lines(juice[ord], fitted(fruit.lmb4)[ord], lwd=2)
> ci <- predict(fruit.lmb4, interval="confidence")
> lines(juice[ord], ci[ord,"lwr"])
> lines(juice[ord], ci[ord,"upr"])
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>