View source: R/plot_Scatterplots.R

plot_Scatterplots | R Documentation |

Create a hexbin plot matrix (hexbin::hexplom) of age results returned by the bayesian age calculation.

plot_Scatterplots( object, variables = c("A"), sample_names = NULL, sample_selection = NULL, n.chains = NULL, plot_type = "hexbin", plot_mode = "matrix", ... ) ScatterSamples(...)

`object` |
coda::mcmc.list or a data.frame ( |

`variables` |
character ( |

`sample_names` |
character ( |

`sample_selection` |
numeric ( |

`n.chains` |
integer ( |

`plot_type` |
character ( |

`plot_mode` |
character ( |

`...` |
further arguments to control the plot output, standard plot arguments supported are |

**Addtional supported plot arguments**

The following table lists additional arguments supported by the function in order to fine tune the
graphical output. Such arguments, can just be added in the function call. Example, for disabling
the graphics::rug in the plot mode `smoothScatter`

you can type `plot_Scatterplots(..., rug = FALSE)`

Please note that not all arguments are supported by all plot types.

ARGUMENT | SUPPORTED BY PLOT TYPE | DESCRIPTION |

`colramp` | `hexbin` and `smoothScatter` | Option to define an own colour ramp, by defining an own function, e.g., `function(n) heat.colors(n, alpha = 1)` . |

`pscales` | `hexbin` and `smoothScatter` | Controls the number of ticks shown on the plot axes, please note that the number works proportionally. |

`bw_smoothScatter` | `smoothScatter` | Controls the bandwith of the smooth scatter, cf. graphics::smoothScatter |

`rug` | `smoothScatter` | enables/disables rugs |

`nlevels` | `smoothScatter` | controls the number of isolines shown (cf. graphics::contour) |

`nrpoints` | `smoothScatter` | defines the number of `nrpoints` to be plotted graphics::smoothScatter |

`col_contour` | `smoothScatter` | defines the colour of the contour lines |

`col_nrpoints` | `smoothScatter` | sets colour of the nrpoints in the scatter plot |

A scatter plot based on hexbin::hexplom

0.3.1

Kreutzer, S., Christophe, C., Philippe, A., 2022. plot_Scatterplots(): Display Scatter Plot Matrix of the Bayesian Age Results. Function version 0.3.1. In: Christophe, C., Philippe, A., Kreutzer, S., Guerin, G., 2022. BayLum: Chronological Bayesian Models Integrating Optically Stimulated. R package version 0.2.1. https://CRAN.r-project.org/package=BayLum

Sebastian Kreutzer, IRAMAT-CRP2A, UMR 5060, CNRS - UniversitĂ© Bordeaux Montaigne (France), based on the function 'ScatterSamples()' by Claire Christophe, Anne Philippe, Guillaume GuĂ©rin

Age_Computation, AgeS_Computation, AgeC14_Computation, and rjags packages.

data(AgeS,envir = environment()) ##hexbin plot_Scatterplots( object = AgeS$Sampling, sample_names = c("GDB5", "GDB3"), sample_selection = c(1,2) ) ##scatter smooth (matrix) plot_Scatterplots( object = AgeS$Sampling, sample_names = c("GDB5", "GDB3"), sample_selection = c(1,2), plot_type = "smoothScatter") ##scatter smooth (single) plot_Scatterplots( object = AgeS$Sampling, sample_names = c("GDB5", "GDB3"), sample_selection = c(1,2), plot_type = "smoothScatter", plot_mode = "single")

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.