Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.18 KB

scale_y_continuous.md

File metadata and controls

58 lines (42 loc) · 1.18 KB

title: y_continuous author: Daniel Jones part: Scale order: 2000 ...

Map numerical data to y positions in cartesian coordinates.

Arguments

  • minvalue: Force the plot viewport to a minimum y value.
  • maxvalue: Force the plot viewport to a maximum y value.
  • format: How numbers should be formatted. One of :plain, :scientific, or :auto. The default in :auto which prints very large or very small numbers in scientific notation, and other numbers plainly.

Variations

A number of transformed continuous scales are provided.

  • Scale.y_continuous (scale without any transformation).
  • Scale.y_log10
  • Scale.y_log2
  • Scale.y_log
  • Scale.y_asinh
  • Scale.y_sqrt

Aesthetics Acted On

y, ymin, ymax, yintercept

Examples

using RDatasets
using Gadfly

Gadfly.prepare_display()
srand(1234)
# Transform both dimensions
plot(x=rand(10), y=rand(10), Scale.y_log)
# Force the viewport
plot(x=rand(10), y=rand(10), Scale.y_continuous(minvalue=-10, maxvalue=10))
# Use scientific notation
plot(x=rand(10), y=rand(10), Scale.y_continuous(format=:scientific))