Skip to content

Tool to display chronological intervals using R #2

Description

@dirkseidensticker

Within the currently available geom's ggplot() is offering, a proper illustration of (dating) intervals is hardly possible. Usually geom_rect() or geom_segment() are used to display data -- e.g. chronological phases -- with a given start and end date.

library(ggplot2)

phase <- c("A", "B", "X")
from <- c(1200, -400, 250)
to <- c(1800, 200, 600)

chrono <- data.frame(phase, from, to)

ggplot(data = chrono, 
       aes(x = to, 
           xend = from, 
           y = phase, 
           yend = phase, 
           label = phase)) + 
  geom_segment(size = 6, alpha = .4) + 
  geom_text(hjust = -2) + 
  theme_minimal()

Rplot

Within last years presentation during the EAA (Barcelona; see RDF based modeling of relative and absolute chronological data ) we were unable to propperly display intervals using R/ggplot.

Within that same framework I would suggest trying to implement Allen's Interval Algebra (doi:10.1016/B978-1-4832-1447-4.50033-X) within an R package. While it seems to be interesting, especially within archaeological research, it seems to be hardly known by anybody as there are no tools available to model and display these relationships effectively. And as chronology is at the basis of most archaeological reasoning I would propose it as a project for the unconference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions