plot_morphospace_stack {Claddis} | R Documentation |

Plots a stack of ordination spaces representing multiple time-slices.

plot_morphospace_stack( pcoa_input, taxon_ages, taxon_groups, time_bins, shear = 0.2, x_axis = 1, y_axis = 2, palette = "viridis", plot_cushion = 0.3, platform_size = 0.95, plot_pillars = TRUE, plot_crosshair = TRUE, plot_grid_cells = TRUE, plot_convex_hulls = TRUE, plot_timebin_names = TRUE, plot_tickmarks = TRUE, plot_group_legend = TRUE, group_legend_position = "bottom_right", point_size = 1.5 )

`pcoa_input` |
The main input in the format output from ordinate_cladistic_matrix. |

`taxon_ages` |
A two-column matrix of the first and last apperance dates (columns; |

`taxon_groups` |
A named list of groups to which taxa are assigned (optional). This is used to plot points or convex hulls in different colours corresponding to each group. As the user names the groups these can represent any grouping of interest (e.g., taxonomic, ecological, temporal, spatial). |

`time_bins` |
Another two-column matrix of the first and last appearance dates (columns; |

`shear` |
A single value (between 0 and 1) that determines the "sheared" visual appearance of the platforms. |

`x_axis` |
The ordination axis to plot on the x-axis. |

`y_axis` |
The ordination axis to plot nn the y-axis. |

`palette` |
The palette to use for plotting each element of |

`plot_cushion` |
A number determining the "cushion" around the edge of each stack in which no data will be plotted. This should be larger than zero or points will "hang" over the edge. Additionally, if using a |

`platform_size` |
The size of each platform as a proportion. Values of less than one will show slight gaps between platforms, whereas values in excess of one will mean platforms will appear to overlap. |

`plot_pillars` |
Logical indicating whether or not to plot the pillars linking the corners of each platform. |

`plot_crosshair` |
Logical indicating whether or not to plot the "crosshair" (i.e., the zero-zero lines that run through the origin of the morphospace). |

`plot_grid_cells` |
Logical indicating whether or not to plot grid cells that help visualise the distorted aspect ratio of the plot. Each cell is a square in the ordination space. |

`plot_convex_hulls` |
Logical indicating whether or not to plot convex hulls around the taxonomic groupings. Only relevant if |

`plot_timebin_names` |
Logical indicating whether or not to plot the names of each time bin next to each platform. I.e., the rownames from |

`plot_tickmarks` |
Logical indicating whether or not to plot tickmarks next to the bottom platform. |

`plot_group_legend` |
Logical indicating whether or not to plot a legend. Only relevant if using |

`group_legend_position` |
The position the group legend should be plotted. Only relevant if using |

`point_size` |
The size at which the points should be plotted. Note that here points are custom polygons and hence are not editable by normal plot options, e.g., |

This style of plot is taken from various papers by Michael Foote (Foote 1993; his Figures 2, 4, 6, 8, 10, 12, and 14; Foote 1994; his Figure 2; Foote 1995; his Figure 3; Foote 1999; his Figure 22), and can be seen elsewhere in the literature (e.g., Friedman and Coates 2006; their Figure 2c). Here multiple ordination (or morpho-) spaces are plotted in stratigraphic order (oldest at bottom) as a stacked series of "platforms" representing named time bins.

The user needs to supply three main pieces of information to use the function: 1) ordination data that includes rows (taxa) and columns (ordination axes), 2) the ages (first and last appearance dates) of the taxa sampled, and 3) the ages (first and last appearance dates) of the named time bins used.

Note that since version 0.6.1 this function has been completely rewritten to better reflect the usage of these type of figures (see citations above) as well as allow additional features. This was also done in part to standardise the function to fit the style of the other major disparity plotting functions in Claddis, such as plot_morphospace. This means the input data is now assumed to come directly from ordinate_cladistic_matrix, but the user could easily still bring in data from elsewhere (the way the function worked previously) by reformatting it using something like:

`pcoa_input <- list(vectors = my_imported_data)`

Where my_imported_data has columns representing ordination axes (1 to N) and rownames corresponding to taxon names.

Graeme T. Lloyd graemetlloyd@gmail.com and Emma Sherratt emma.sherratt@gmail.com

Foote, M., 1993. Discordance and concordance between morphological and taxonomic diversity. *Paleobiology*, **19**, 185-204.

Foote, M., 1994. Morphological disparity in Ordovician-Devonian crinoids and the early saturation of morphological space. *Paleobiology*, **20**, 320-344.

Foote, M., 1995. Morphological diversification of Paleozoic crinoids. *Paleobiology*, **21**, 273-299.

Foote, M., 1999. Morphological diversity in the evolutionary radiation of Paleozoic and post-Paleozoic crinoids. *Paleobiology*, **25**, 1-115.

Friedman, M. and Coates, M. I., 2006. A newly recognized fossil coelacanth highlights the early morphological diversification of the clade. *Proceedings of the Royal Society of London B*, **273**, 245-250.

assign_taxa_to_bins, plot_chronophylomorphospace, plot_morphospace, plot_multi_morphospace, ordinate_cladistic_matrix

# Build taxon ages matrix for Day et al 2016 data: taxon_ages <- matrix(data = c(269, 267, 263, 260, 265, 265, 265, 265, 257, 255, 259, 259, 258, 258, 260, 257, 257, 255, 257, 257, 255, 252, 259, 259, 260, 258, 253, 252, 257, 255, 257, 255), ncol = 2, byrow = TRUE, dimnames = list(c("Biarmosuchus_tener", "Hipposaurus_boonstrai", "Bullacephalus_jacksoni", "Pachydectes_elsi", "Lemurosaurus_pricei", "Lobalopex_mordax", "Lophorhinus_willodenensis", "Proburnetia_viatkensis", "Lende_chiweta", "Paraburnetia_sneeubergensis", "Burnetia_mirabilis", "BP_1_7098", "Niuksenitia_sukhonensis", "Ictidorhinus_martinsi", "RC_20", "Herpetoskylax_hopsoni"), c("FAD", "LAD"))) # Ordinate Day et al 2016 data set: pcoa_input <- ordinate_cladistic_matrix(cladistic_matrix = prune_cladistic_matrix( cladistic_matrix = day_2016, taxa2prune = "Lycaenodon_longiceps")) # Build simple taxonomic groups fro Day et al 2016 daat set: taxon_groups <- list(nonBurnetiamorpha = c("Biarmosuchus_tener", "Hipposaurus_boonstrai", "Bullacephalus_jacksoni", "Pachydectes_elsi", "Niuksenitia_sukhonensis", "Ictidorhinus_martinsi", "RC_20", "Herpetoskylax_hopsoni"), Burnetiamorpha = c("Lemurosaurus_pricei", "Lobalopex_mordax", "Lophorhinus_willodenensis", "Proburnetia_viatkensis", "Lende_chiweta", "Paraburnetia_sneeubergensis", "Burnetia_mirabilis", "BP_1_7098")) # Build a sequence of equally spaced time bins spanning Day et al. 2016 data: time_sequence <- seq(from = 270, to = 252, length.out = 6) # Reformt this sequence into named time bin matrix: time_bins <- matrix( data = c(time_sequence[1:(length(x = time_sequence) - 1)], time_sequence[2:length(x = time_sequence)]), ncol = 2, dimnames = list(c("Bin 1", "Bin 2", "Bin 3", "Bin 4", "Bin 5"), c("fad", "lad")) ) # Plot morphospace stack using named time bins: plot_morphospace_stack( pcoa_input = pcoa_input, taxon_ages = taxon_ages, taxon_groups = taxon_groups, time_bins = time_bins, )

[Package *Claddis* version 0.6.3 Index]