Skip to content

Commit 8420c63

Browse files
committed
Clarify that Gadfly support is not working curently
1 parent 1801030 commit 8420c63

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The following data sinks are currently supported:
5151
* [CSV](https://github.com/JuliaData/CSV.jl)
5252
* [Feather](https://github.com/JuliaStats/Feather.jl)
5353
* [StatPlots](https://github.com/JuliaPlots/StatPlots.jl)
54-
* [Gadfly](https://github.com/GiovineItalia/Gadfly.jl)
54+
* [Gadfly](https://github.com/GiovineItalia/Gadfly.jl) (currently not working)
5555
* [VegaLite](https://github.com/fredo-dedup/VegaLite.jl)
5656
* [TableView.jl](https://github.com/JuliaComputing/TableView.jl)
5757
* [DataVoyager.jl](https://github.com/queryverse/DataVoyager.jl)
@@ -115,12 +115,12 @@ lm(@formula(Children~Age),tt)
115115
# Run a regression on a DataTable
116116
lm(@formula(Children~Age),dt)
117117
````
118-
Or you can plot any of these data sources with ``Gadfly``:
118+
Or you can plot any of these data sources with `VegaLite`:
119119
````julia
120-
using Gadfly
120+
using VegaLite
121121

122122
# Plot a TypedTable
123-
plot(tt, x=:Age, y=:Children, Geom.line)
123+
tt |> @vlplot(:point, x=:Age, y=:Children)
124124
````
125125
Or with ``StatsPlots``:
126126
````julia

Diff for: docs/src/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ like `ModelFrame` etc.),
3030
[TimeSeries](https://github.com/JuliaStats/TimeSeries.jl),
3131
[TypedTables](https://github.com/FugroRoames/TypedTables.jl),
3232
[StatsModels](https://github.com/JuliaStats/StatsModels.jl),
33-
[Gadfly](https://github.com/GiovineItalia/Gadfly.jl) and
33+
[Gadfly](https://github.com/GiovineItalia/Gadfly.jl) (currently not working) and
3434
[VegaLite](https://github.com/fredo-dedup/VegaLite.jl).
3535

3636
The package is tightly integrated with [Query.jl](https://github.com/davidanthoff/Query.jl):
@@ -89,14 +89,14 @@ lm(@formula(Children~Age),tt)
8989
# Run a regression on a DataTable
9090
lm(@formula(Children~Age),dt)
9191
```
92-
Or you can plot any of these data sources with `Gadfly`:
92+
Or you can plot any of these data sources with `VegaLite`:
9393
```julia
94-
using Gadfly
94+
using VegaLite
9595

9696
# Plot a TypedTable
97-
plot(tt, x=:Age, y=:Children, Geom.line)
97+
tt |> @vlplot(:point, x=:Age, y=:Children)
9898

9999
# Plot a DataTable
100-
plot(dt, x=:Age, y=:Children, Geom.line)
100+
dt |> @vlplot(:point, x=:Age, y=:Children)
101101
```
102102
Again, this will work with any of the data sources listed above.

Diff for: docs/src/userguide.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,12 @@ And to write an iterable table to a Feather file, one would use the following co
9696
Feather.write("filename.csv", IterableTables.get_datastreams_source(ds))
9797
```
9898

99-
## Gadfly and VegaLite
99+
## VegaLite
100100

101-
For both plotting packages one can simply pass an iterable table where one would normally have passed a `DataFrame`.
102-
103-
The following example plots an iterable table `ds` using Gadfly:
104-
105-
```julia
106-
p = plot(ds, x=:a, y=:b, Geom.line)
107-
```
108-
109-
And this code will plot an iterable table using VegaLite:
101+
VegaLite can plot any iterable table. Here is a simple example:
110102

111103
```julia
112-
p = data_values(ds) +
113-
mark_line() +
114-
encoding_x_quant(:a) +
115-
encoding_y_quant(:b)
104+
ds |> @vlplot(:line, x=:a, y=:b)
116105
```
117106

118107
## StatsModels (and statistical models in DataFrames)

0 commit comments

Comments
 (0)