GeomPointrange

Pointrange geometry: vertical stem from ymin to ymax plus a point at (x, y).

Defaults

geom
pointrange
default stat
identity
default position
identity
params type
PointrangeParams

Svelte component

import { GGPlot, GeomPointrange } from "@ggsvelte/svelte";

<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
  <GeomPointrange />
</GGPlot>

JSON layer

{
  "geom": "pointrange"
}

Params

linewidth

number

Stem stroke width in px. Must be greater than 0. Default 1.

alpha

number

Opacity for stem and point. Default 1.

size

number

Mid-point radius in px. Default 2.5.

shape

"circle" | "triangle" | "square" | "diamond" | "plus" | "cross"

Mid-point shape. Default "circle".

fun

"mean" | "median" | "sum"

STAT SUMMARY ONLY: center summary of y per x group. Default "mean" (mean_se when funMin/funMax omitted).

funMin

SummaryFun

STAT SUMMARY ONLY: summary function for the lower bound (ymin). Overrides the mean_se default.

funMax

SummaryFun

STAT SUMMARY ONLY: summary function for the upper bound (ymax). Overrides the mean_se default.

Allowed stats

Allowed positions

← All geoms · Getting started