visualise-penalty: Visualise penalty

Description Usage Arguments Value Examples

Description

Plot liking drop and citing frequency from penalty analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'tbl_sensory_penalty'
visualise(
  res,
  product,
  frequency_threshold = 20,
  drop_threshold = 1,
  title = "Penalty analysis",
  xlab = "Citing frequency (%)",
  ylab = "Mean of liking drop",
  ...
)

Arguments

res

output penalty analysis

product

product of interest (only one product)

frequency_threshold

threshold for citing frequency

drop_threshold

threshold for iking drop

title

a title to use in plot

xlab

label for x-axis

ylab

label for y-axis

...

not yet implemented

Value

a ggplot object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
perfume_jar %>%
  specify(
    sensory_method = "JAR",
    panelist = consumer,
    product = product,
    attribute = intensity:green,
    hedonic = liking
  ) %>%
  analyse(choice = "penalty", ref_value = 0) %>% 
  visualise("Chanel N5", drop_threshold = 2)

aswansyahputra/sensehubr documentation built on March 12, 2021, 9:45 a.m.