Learn R Programming

tempR (version 0.10.1.1)

get.decluttered: Get decluttering matrix indicating where to show/hide reference lines

Description

Declutter TCATA curves by hiding reference lines from plots showing TCATA curves.

Usage

get.decluttered(x = x, n.x = n.x, y = y, n.y = n.y, alpha = 0.05)

Value

declutter vector in which 1 indicates "show" and NA indicates "hide"

Arguments

x

selections for sample of interest (can be a vector if several samples of interest)

n.x

evaluations of x (can be a vector if several samples of interest)

y

selections for comparison (can be a vector if several comparisons will be made)

n.y

evaluations of y (can be a vector if several comparisons of interest)

alpha

significance level

References

Castura, J.C., Antúnez, L., Giménez, A., Ares, G. (2016). Temporal check-all-that-apply (TCATA): A novel temporal sensory method for characterizing products. Food Quality and Preference, 47, 79-90. tools:::Rd_expr_doi("10.1016/j.foodqual.2015.06.017")

See Also

fisher.test, citation.counts

Examples

Run this code

# functionality of get.decluttered() is conveniently provided in citation.counts()

# Data set: ojtcata
# Get declutter matrix for comparison of Product 2 vs. average of all products
data(ojtcata)
oj2.v.all <- citation.counts(ojtcata, product.name = "2", product.col = 2,
       attribute.col = 4, results.col = 5:25, comparison = "average")
oj2.v.all$declutter

# same as

p2.declutter <- get.decluttered(x = c(oj2.v.all$P1), n.x = oj2.v.all$Pn,
                                y = c(oj2.v.all$C1), n.y = oj2.v.all$Cn)
(p2.declutter <- matrix(p2.declutter, nrow = nrow(oj2.v.all$P1)))

Run the code above in your browser using DataLab