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

View source: R/tcata.R

get.declutteredR Documentation

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)

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

Value

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

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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.foodqual.2015.06.017")}

See Also

fisher.test, citation.counts

Examples


# 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)))

tempR documentation built on Sept. 8, 2023, 5:19 p.m.

Related to get.decluttered in tempR...