title: y_continuous author: Daniel Jones part: Scale order: 2000 ...
Map numerical data to y positions in cartesian coordinates.
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.
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
y
, ymin
, ymax
, yintercept
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))