Title

apt-get update
apt-get upgrade -y
apt-get install build-essential -y
apt-get install -y cmake mesa-utils
apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev mesa-utils
apt-get install -y ffmpeg
pkg"up; add AbstractPlotting#master GLMakie#master Makie#master"
using Makie
scatter(rand(10))
pkg"add https://github.com/JuliaPlots/StatsMakie.jl.git"
pkg"add https://github.com/mkborregaard/MakieThemes.jl"
using StatsMakie, CSV, MakieThemes
using GLMakie, AbstractPlotting, StatsMakie
datafolder = joinpath(dirname(pathof(MakieThemes)), "..", "data")
for data  (:www, :drivers, :mtcars, :diamonds)
  @eval $(data) = CSV.read(joinpath(datafolder, $(string(data))*".tsv"), delim = '\t', allowmissing = :none)
end;
AbstractPlotting.set_theme!(ggthemr(:fresh))
p1 = scatterlines(Data(www), :Minute, :Users,
  Group(color = :Measure, marker = :Measure),
  markersize = 6, marker = [:rect, :circle],
)

p2 = plot(density, Data(mtcars),
  :mpg, Group(color = :cyl))

p3 = plot(Position.stack, histogram, Data(diamonds),
  :price, Group(color = :cut), strokewidth = 0)

p4 = boxplot(Data(drivers), :Year, :Deaths)

vbox(hbox(p1, p2), hbox(p3, p4))
© 2018 Nextjournal GmbH