---
title: "SensoryDataSets: A Collection of Sensory Evaluation and Consumer Science Datasets"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{SensoryDataSets: A Collection of Sensory Evaluation and Consumer Science Datasets}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

```{r setup}
library(SensoryDataSets)
library(ggplot2)
library(dplyr)
```


# Introduction

The `SensoryDataSets` package offers a rich and diverse collection of datasets focused on **sensory evaluation, consumer research, and related statistical applications**. It includes comprehensive data on topics such as **hedonic and liking scores, sensory profiles, descriptive evaluations, physicochemical measurements, and wine quality and bitterness assessments**.

The package contains a wide variety of data types, including consumer testing data, descriptive sensory analysis panels, physicochemical measurements of products, and preference and acceptability studies. These datasets encompass **products such as bread, olive oil, orange juice, grape blends, wine, cocktails, chocolate, perfume, and smoothies**, covering applications that range from hedonic evaluation and quantitative descriptive analysis to wine quality studies, bitterness perception, and physicochemical characterization of consumer products.

`SensoryDataSets` is intended for **teaching, exploratory data analysis, statistical modeling, multivariate analysis, consumer studies, and methodological research** in sensory and consumer science. The original data sources and applicable licensing terms are documented in the `LICENSES_DETAILS.md` file.


## All datasets within SensoryDataSets

```{r SensoryDataSets-datasets,echo = TRUE,message = FALSE,warning = FALSE,results = 'markup'}


view_datasets_SensoryDataSets()


```

##  Data Visualization with SensorDataSets

###  Wine Quality

```{r fig.width=7, fig.height=5}
library(ggplot2)

ggplot(winequality_df, aes(x = factor(quality), y = alcohol)) +
  geom_boxplot(fill = "#722F37", alpha = 0.7, outlier.color = "#722F37") +
  labs(
    title = "Alcohol Content by Wine Quality Score",
    x = "Quality Score",
    y = "Alcohol (%)"
  ) +
  theme_minimal()
```

# Conclusion

The `SensoryDataSets` package brings together a diverse and well-documented collection of datasets spanning sensory evaluation, consumer research, and product quality assessment. By covering a wide range of products—from bread and wine to chocolate and perfume—it provides researchers, educators, and students with ready-to-use data for exploring hedonic responses, descriptive sensory profiles, and physicochemical characteristics. Whether used for teaching statistical and multivariate methods or for methodological research in sensory and consumer science, `SensoryDataSets` aims to lower the barrier to reproducible, hands-on learning and analysis in this field.

<div class="tocify-extend-page" data-unique="tocify-extend-page" style="height: 0;"></div>
