Wrapper for ggplot2 to simplify creating of plots in F# using RPRovider
F#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.paket
.gitignore
README.md
examples.fsx
ggplot-example.png
ggplot.fs
ggplot.fsproj
ggplot.sln
paket.dependencies
paket.lock
paket.references

README.md

ffplot: F# wrapper for ggplot2

ggplot2 is a great R library for flexible visualizations, based on compositional design of plots. Unfortunately, using it from F# can be sometimes cumbersome. To simplify using ggplot2 from F#, I put together a simple wrapper, ffplot.

You can find more information on my blog.

Requirements:

To use ggplot2 from F#, you'll need the following tools:

  • R installation with the ggplot2 package.
  • RProvider - F# type provider for calling R from F#.
  • Optional: FsLab collects all the necessary dependencies and simplifies other data science tasks in F#.

Usage:

To use ffplot, simply reference the ggplot.fs file from your solution. You can also add the file using the paket dependency manager by adding the following line into your paket.dependencies file:

  github evelinag/ffplot ggplot.fs

See paket documentation for more details on referencing Github dependencies.

For creating ggplot2 plots, see examples.fsx with both simple and more complex examples showing how to use ffplot in F#.

ggplot2 example