coord_bearing_plunge: A bearing/dip coordinate system

Description Usage Arguments Examples

Description

This coordinate system imagines that your data will be plotted on the bottom of a sphere, as viewed from the inside, oriented such that 0 bearing is due north and and 0 plunge is horizontal. Increasing plunge values plot towards the centre of the plot, and increasing bearing values plot clockwise from north.

Usage

1
coord_bearing_plunge(projection = c("stereographic", "orthographic"))

Arguments

projection

Use stereographic to look at the bottom of the sphere as if you are situated at the top of the sphere (probably what you want); use orthographic to look at the bottom of the sphere as if you were very far away from it.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(ggplot2)

df <- data.frame(
  bearing = seq(0, 4*180, length.out = 40),
  plunge = seq(0, 90, length.out = 40)
)

ggplot(df, aes(bearing, plunge)) +
  geom_path(col = "red") +
  geom_point(col = "blue") +
  coord_bearing_plunge() +
  scale_x_continuous(breaks = seq(0, 330, by = 30))

paleolimbot/ggstereo documentation built on May 16, 2019, 9:10 p.m.