Skip to content

Commit

Permalink
Update example in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonyEpsilon committed Dec 26, 2014
1 parent 682ac71 commit b36c653
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ plots to be displayed inline in Gorilla worksheets. It is not a Clojure rewrite
installed on your system (see below), to render the plots. You'll need to be familiar with R and ggplot2, or else the
commands will seem fairly cryptic.

An example using one of R's built-in datasets:

```clojure
(gg4clj/view [:qplot :mpg :hp {:data :mtcars :color [:factor :cyl]}])
```

![Simple example plot](example1.png)
An example, generating some random numbers in Clojure, and then plotting a 2D-density in ggplot:

```clojure
(defn b-m
Expand All @@ -37,7 +31,7 @@ An example using one of R's built-in datasets:
{:width 5 :height 5})
```

![Example plot](example2.png)
![Example plot](example.png)

See more examples in the `ws/demo.clj` worksheet, which you can view here:

Expand Down
File renamed without changes
Binary file removed example1.png
Binary file not shown.

0 comments on commit b36c653

Please sign in to comment.