Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 763 Bytes

geom_beeswarm.md

File metadata and controls

37 lines (26 loc) · 763 Bytes

title: beeswarm author: Daniel C. Jones part: Geometry order: 1018 ...

Plot points, shifting them on the x- or y-axis to avoid overlaps.

Arguments

  • orientation: :horizontal or :vertical. Points will be shifted on the y-axis to avoid overlap if orientation in horizontal, and on the x-axis, if vertical.
  • padding: Minimum distance between two points.

Aesthetics

  • x: X-axis position.
  • y: Y-axis position.
  • color (optional): Point color (categorial or continuous).

Examples

using RDatasets
using Gadfly

Gadfly.set_default_plot_size(14cm, 8cm)
# Binding categorial data to x
plot(dataset("lattice", "singer"), x="VoicePart", y="Height", Geom.beeswarm)