Skip to content

Commit

Permalink
Correct boxplot calc
Browse files Browse the repository at this point in the history
  • Loading branch information
randyzwitch committed Oct 6, 2015
1 parent 226fd57 commit 2d4e02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/derived/boxplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function boxplot(;y::AbstractArray = Int[], group::AbstractArray = Int[])
#Calculate whiskers
whiskers = VegaData(name = "iqrcalcs",
source = "stats",
transform = [VegaTransform(Dict{Any, Any}("type" => "formula", "field" => "lower", "expr" => "max(datum.min_y,datum.q1_y-1.58*(datum.q3_y-datum.q1_y))")),
VegaTransform(Dict{Any, Any}("type" => "formula", "field" => "upper", "expr" => "min(datum.max_y,datum.q1_y+1.58*(datum.q3_y-datum.q1_y))"))
transform = [VegaTransform(Dict{Any, Any}("type" => "formula", "field" => "lower", "expr" => "max(datum.min_y,datum.q1_y-1.5*(datum.q3_y-datum.q1_y))")),
VegaTransform(Dict{Any, Any}("type" => "formula", "field" => "upper", "expr" => "min(datum.max_y,datum.q1_y+1.5*(datum.q3_y-datum.q1_y))"))
]
)

Expand Down

0 comments on commit 2d4e02c

Please sign in to comment.