Skip to content

geom_contour documentation is misleading #4324

Closed
@dmurdoch

Description

@dmurdoch

The documentation for geom_contour says:

Contouring
tends to work best when \code{x} and \code{y} form a (roughly) evenly
spaced grid.

but in fact, as issue #4320 and its discussion describes, there are much more stringent requirements. Exactly what the requirements are is a little unclear to me; the code to do it is in isoband_z_matrix() here:

isoband_z_matrix <- function(data) {
It's something like "Contouring requires the (x, y) pairs to be a large subset of the grid of all possible pairs of unique values of x and y, with no repeats."

It would also be helpful to add an example using akima::interp(), the usual way to produce the grid of values from irregular data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions