Introduction
Coefplots.jl is a Julia package that creates publication quality visualization for regressions. It aims to make available in Julia part of the functionalities of the Stata command coefplot
. Coefplots.jl is built on PGFPlotsX.jl, which bridges the backend, LaTeX library pgf, and Julia interface. The figures produced with Coefplots can be previewed in notebooks and IDE's, like julia-vscode and Atom-Juno, thanks to PGFPlotsX.jl.
Coefplots.jl can plot results directly from an estimation object (e.g. of type TableRegressionModel
in StatsModels.jl, of type RegressionModel
in StatsBase.jl, of type FixedEffectModel
in FixedEffectModels.jl and so on) or DataFrame objects that contain estimation results. Results from multiple models or data frames can be combined in a single graph. Coefplots.jl draws markers for point estimates and error bars for confidence intervals.
Installation
import Pkg
Pkg.add("Coefplots")
Similar to the requirments for PGFPlotsX installation, Coefplots.jl requires
- a LaTeX installation with the PGFPlots package installed,
pdf2svg
to generate or preview figures insvg
.pdftoppm
forpng
figures.
For more information of prerequisite installations, please refer to the installation section of PGFPlotsX.jl's documentation.