sorder_data | R Documentation |
Sort and/or order a dataframe to be used for the heatmap (will be the "datasorted" variable).
sorder_data(data, data2, year = NULL, n_camp, heat_sort, add_annot)
data |
The main dataframe with "Provincia" and other information columns (use data()). |
data2 |
The second dataframe that has to be sorted and joined with data. (e.g. datapolind()). Data must has "Codice_azienda", "Azienda" "N_campionamento", and "Anno" and nothing more (NO Provincia or Cultivar or ID_foglie). So only those 3 char columns and all double columns (polifenols. |
year |
Data will be filtered by "Anno" (e.g. "2020"). The default is NULL (data will not be filtered by year but only by n_camp). |
n_camp |
Data will be filtered by "N_campionamento" (e.g. "R2"). |
heat_sort |
Option for ordering data (TRUE or FALSE). |
add_annot |
A column used for the annotation (e.g. "Provincia"). |
## Not run:
sorder_data(
data2 = datapolind(),
year = input$selyearheatind,
n_camp = input$numheat,
heat_sort = input$heatsort,
add_annot = input$selectannot
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.