View source: R/classification_triangle.R
ggplot_classificationtriangle_part1 | R Documentation |
Function returns ggplot of the first parts of the BS soil classification chart: the triagular upper part
ggplot_classificationtriangle_part1( gravel = NULL, sand = NULL, fines = NULL, group = NULL, grid_ticks = 10, grid_label = 20, tick_length = 2, label_length = 7, label_size = 2, title_length = 15, title_size = 3, soil_size = 2, soil_size2 = 1.4, soil_spacing = 0.75, polygon_line = 0.4, polygon_color = "grey60", xlim = c(-0.2, 1.2), ylim = c(-0.2, 1) )
gravel |
fraction of gravel for crosshair annotation |
sand |
fraction of sand for crosshair annotation |
fines |
fraction of fines for crosshair annotation |
group |
grouping for crosshair annotation (label) |
grid_ticks |
distance between axis ticks, in % |
grid_label |
distance between axis tick labels, in % |
tick_length |
length of tick mark, in % |
label_length |
distance of tick label to chart axis, in % |
label_size |
font size of tick label |
title_length |
distance to axis title to chart, in % |
title_size |
font size of axis title |
soil_size |
font size of soil labels |
soil_size2 |
font size of soil labels, for the small ones in the middle of the triangular plot |
soil_spacing |
line spacing for soil labels |
polygon_line |
thickness of soil polygon lines |
polygon_color |
color of soil polygon lines |
xlim |
plot x-limits |
ylim |
plot y-limits |
a ggplot object
#empty chart ggplot_classificationtriangle_part1() #chart with some annotations ggplot_classificationtriangle_part1( gravel = 0.25, sand = 0.30, fines = 0.45 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.