--- title: "Chapter 6" --- # Chapter 6 CV transmission etc.. Figure 6.4 kroeber seriation:

Images from Wikimedia Commons: Tusayan Black-on-Red bowl, Grand Canyon National Park, CC BY 2.0; Fourmile Polychrome bowl, Riggs Pueblo Pottery Fund, no known restrictions; Corrugated jar, Netherzone, CC BY-SA 4.0.

```{r battleship-seriation, fig.width=7.2, fig.height=4.8, fig.cap=""} dt <- data.frame( "Black-on-Red" = c(2, 4, 3, 3, 2, 4, 3, 9, 2, 6, 5, 3, 7, 0, 0, 0), "Three-Color" = c(14, 10, 9, 9, 5, 5, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0), "Corrugated" = c(0, 1, 0, 2, 2, 3, 4, 9, 22, 24, 11, 36, 44, 59, 63, 64), check.names = FALSE ) #these data are not he original but estimated from the image in Lyman and Harpole 2002 rownames(dt) <- rev( c( "Zuni", "Towway", "Kolliwa", "Shunnte", "Wimmay", "Mattsak", "Kyakki", "Pinnawa", "Site W", "Hattsina", "Kyakki W", "Shoptlu", "Hawwik B", "Te\'alla", "Site X", "Tetlnat" )) ship_cols <- c("#8c6bb1", "#1f77b4", "#ff7f0e") series_col <- ncol(dt) n_phase <- nrow(dt) phase_axis <- seq_len(n_phase) phase_labels <- rownames(dt) series_center <- seq_len(series_col) max_ship_width <- 3.5 ship_widths <- as.matrix(dt) / max(dt[, "Corrugated"]) * max_ship_width plot_left <- series_center[3] - max_ship_width / 2 plot_right <- series_center[3] + max_ship_width / 2 par(las = 1, bty = "n", mar = c(1, 7, 3, 1), xpd = NA) plot( NA, xlim = c(0, plot_right), ylim = c(0.5, n_phase + 1.5), axes = FALSE, xlab = "", ylab = "" ) for (s in seq_len(series_col)) { for (r in phase_axis) { chip_bottom <- (n_phase - r) + 0.55 chip_top <- (n_phase - r) + 1.45 chip_width <- ship_widths[r, s] rect( series_center[s] - chip_width / 2, chip_bottom, series_center[s] + chip_width / 2, chip_top, col = ship_cols[s], border = "white" ) } } text( series_center, n_phase + 1.1, labels = colnames(dt), font = 2, cex = 0.9 ) text( 0, n_phase - phase_axis + 1, labels = phase_labels, pos = 2, font = 2, cex = 0.9 ) ``` A more common wa to represent tht would be to plot the freuecny through time, using ```{r} matplot(cbind(1:nrow(dt) ,1:nrow(dt) ,1:nrow(dt)) ,dt,type="l",lwd=3,col=ship_cols,lty=1,ylab="frequency",xlab="time") ``` This should remind you of the plot about changes in allele frequency seen in Chapter 3, we will see later how we can use these description of the data to test hypotheses about the cultural transmission process.