Skip to content

Commit ba04622

Browse files
committed
another attempt to give examples access to data
1 parent 6253e6b commit ba04622

29 files changed

+46
-32
lines changed

docs/examples/geoms/geom_bar.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838

3939
using TidierPlots
4040
using DataFrames
41-
using Parquet2
4241

43-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
42+
penguins = penguins_data()
4443

4544
# For basic counting, provide only an x aesthetic. The height of each bar will represent the count of observations in each category.
4645

docs/examples/geoms/geom_boxplot.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@
4848

4949
using TidierPlots
5050
using DataFrames
51-
using Parquet2
5251

53-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
52+
penguins = penguins_data()
5453

5554
# Create a basic boxplot showing the distribution of bill length for each species:
5655

docs/examples/geoms/geom_col.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@
4444

4545
using TidierPlots
4646
using TidierData
47-
using DataFrames
48-
using Parquet2
47+
using DataFrame
4948

50-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
49+
penguins = penguins_data()
5150

5251
# First, we create a summarized dataset with mean bill length by species and sex:
5352

docs/examples/geoms/geom_density.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141

4242
using TidierPlots
4343
using DataFrames
44-
using Parquet2
4544

46-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
45+
penguins = penguins_data()
4746

4847
# Create a basic density plot showing the distribution of bill length:
4948

docs/examples/geoms/geom_errorbars.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ using TidierPlots
4141
using TidierData
4242
using DataFrames
4343
using Statistics
44-
using Parquet2
4544

46-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
45+
penguins = penguins_data()
4746

4847
# First, create a summary dataset with means and standard deviations:
4948

docs/examples/geoms/geom_hist.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747

4848
using TidierPlots
4949
using DataFrames
50-
using Parquet2
5150

52-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
51+
penguins = penguins_data()
5352

5453
# Create a basic histogram of bill length:
5554

docs/examples/geoms/geom_hvlines.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
using TidierPlots
4141
using TidierData
4242
using DataFrames
43-
using Parquet2
4443

45-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
44+
penguins = penguins_data()
4645

4746
# ## Horizontal Lines
4847

docs/examples/geoms/geom_lines.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ ggplot(df, @aes(x = x, y = y)) +
8888

8989
# `geom_path()` connects points in the order they appear in the data. This is useful for trajectories or paths through 2D space:
9090

91-
using Parquet2
92-
93-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
91+
penguins = penguins_data()
9492

9593
ggplot(penguins, @aes(x = bill_length_mm, y = bill_depth_mm)) +
9694
geom_path(alpha = 0.3)

docs/examples/geoms/geom_point.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ using DataFrames
4444
using RDatasets
4545
using CategoricalArrays
4646
using Makie
47-
using Parquet2
4847

49-
penguins = DataFrame(Parquet2.readfile(joinpath("penguins.parq")))
48+
penguins = penguins_data()
5049
diamonds = dataset("ggplot2", "diamonds");
5150
mtcars = dataset("datasets", "mtcars");
5251

0 commit comments

Comments
 (0)