strat_plot_key_variables: Draw a stratigraphic plot of key geoarchaeological variables

Description Usage Arguments Value See Also Examples

Description

This function draws a stratigraphic plot of key geoarchaeological variables. It assumes you have already got the data from the Google sheet.

Usage

1
2
  strat_plot_key_variables(my_data, list_of_variables,
    cluster = TRUE, n = 3, ...)

Arguments

my_data

the data resulting from the get_data function

list_of_variables

a list of variables in my_data which you can get by typing names(my_data)

cluster

if TRUE, compute a coniss cluster analysis and add the results to the plot

n

the number of clusters to identify in the data. If you're plotting with clusters, you should take careful note of what number of groups is indicated by the 'elbow' in the first plot produced by this function. That will be the n value. Default is three.

Value

a stratigraphic plot

See Also

get_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
my_data <- get_data()
 my_date_plot <- plot_dates(my_data)
 strat_plot_key_variables(my_data, c('Sample.ID',
                                     'mean.pH',
                                     'mean.EC',
                                     'mean.MS.LF',
                                     'mean.MS.FD',
                                     'mean.Organic',
                                     'mean.CaCO3'),
                                     cluster = TRUE,
                                     n = 3)

benmarwick/au13uwgeoarchlab documentation built on May 12, 2019, 1:01 p.m.