Gallery / Annotations & rules
rug
Bottom-edge rug ticks
Ten long thick ticks along the panel bottom — the marginal mark that reads at index thumbnail size.
Source
Svelte, builder, JSON
<script lang="ts">
import {
GeomRug,
GGPlot,
GuideNone,
Labs,
ScaleXContinuous,
ThemeMinimal,
} from "@ggsvelte/svelte";
import { spacedScores } from "./data.js";
</script>
<GGPlot data={spacedScores} aes={{ x: "score" }} width={640} height={400}>
<ThemeMinimal />
<ScaleXContinuous limits={[0, 11]} />
<Labs
title="Bottom-edge rug ticks"
subtitle="Ten long ticks along the panel bottom for each score"
x="Score"
/>
<!-- y is a placeholder domain for edge ticks only; hide the ladder -->
<GuideNone channel="y" />
<GeomRug
sides="b"
length={0.22}
linewidth={2.8}
alpha={1}
aes={{ color: { value: "#1a202c" } }}
/>
</GGPlot>
Meta
Details
- Family
- Annotations & rules
- Source
rug/ticks- Rendering
- SVG
- Techniques


