Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
17
72
prompt
stringlengths
584
1.16k
answer
stringlengths
63
333
bill-length_species_boxplot
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm)) + geom_boxplot()
bill-depth_species_jitter
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_depth_mm)) + geom_jitter()
flipper-length_histogram
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm)) + geom_histogram(binwidth = 5)
body-mass_species_violin
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = body_mass_g)) + geom_violin()
bill-length_bill-depth_scatter
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm)) + geom_point()
bill-length_bill-depth_scatter_colour_species
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point()
body-mass_flipper-length_scatter_colour_sex_shape_species
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, colour = sex, shape = species)) + geom_point()
bill-length_species_boxplot_coloured_species
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm, fill = species)) + geom_boxplot()
bill-length_bill-depth_scatter_species_smooth
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point() + geom_smooth(method = "lm", se = FALSE)
flipper-length_density_fill_species
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, fill = species)) + geom_density(alpha = 0.4)
species_bar_count
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, fill = species)) + geom_bar()
species_island_bar_dodged
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = island, fill = species)) + geom_bar(position = "dodge")
bill-length_bill-depth_scatter_facet_species
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm)) + geom_point() + facet_wrap(~ species)
body-mass_flipper-length_scatter_facet_species_sex
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g)) + geom_point() + facet_grid(species ~ sex)
bill-length_species_violin_jitter_overlay
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm, fill = species)) + geom_violin() + geom_jitter()
bill-length_species_boxplot_labs
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm)) + geom_boxplot() + labs(title = "Bill Length by Species", x = "Species", y = "Bill Length (mm)")
flipper-length_body-mass_scatter_theme_minimal
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, colour = species)) + geom_point() + theme_minimal()
bill-length_bill-depth_scatter_scale_colour_manual
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point() + scale_colour_manual(values = c(Adelie = "#E69F00", Chinstrap = "#56B4E9", Gentoo = "#009E73"))
body-mass_flipper-length_scatter_log_scale
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, colour = species)) + geom_point() + scale_y_log10()
bill-length_species_boxplot_coord_flip
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm)) + geom_boxplot() + coord_flip()
bill-length_species_mean_bar_stat_summary
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm, fill = species)) + stat_summary(fun = mean, geom = "bar")
bill-length_species_mean_bar_errorbar
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm, fill = species)) + stat_summary(fun = mean, geom = "bar") + stat_summary(fun.data = mean_se, geom = "errorbar", width = 0.2)
bill-length_bill-depth_scatter_2d_density
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point(alpha = 0.3) + geom_density_2d()
body-mass_species_boxplot_facet_island_theme_labs
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = body_mass_g, fill = species)) + geom_boxplot() + facet_wrap(~ island) + theme_classic() + labs(title = "Body Mass by Species and Island", x = "Species", y = "Body Mass (g)")
flipper-length_body-mass_scatter_smooth_facet_sex_legend_off
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, colour = species)) + geom_point() + geom_smooth(method = "lm", se = FALSE) + facet_wrap(~ sex) + theme_minimal() + theme(legend.position = "none")
bill-length_bill-depth_scatter_stat_manual_convex_hull
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point() + stat_manual(geom = "polygon", fun = function(data) data[chull(data$x, data$y), ], fill = NA)
flipper-length_body-mass_scatter_stat_manual_centroid
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, colour = species)) + geom_point(alpha = 0.4) + stat_manual(geom = "point", fun = function(data) data.frame(x = mean(data$x, na.rm = TRUE), y = mean(data$y, na.rm = TRUE)), size = 6, shape = 21)
bill-length_bill-depth_scatter_stat_manual_segment_to_centroid
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point(alpha = 0.4) + stat_manual(geom = "segment", fun = function(data) transform(data, xend = mean(data$x, na.rm = TRUE), yend = mean(data$y, na.rm = TRUE)))
species_island_bar_stacked_scale_fill_manual
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = island, fill = species)) + geom_bar() + scale_fill_manual(values = c(Adelie = "#FF6B6B", Chinstrap = "#4ECDC4", Gentoo = "#45B7D1"))
bill-length_bill-depth_scatter_position_nudge_text
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(species_means, aes(x = mean_bill_length, y = mean_bill_depth, colour = species)) + geom_point() + geom_text(aes(label = species), position = position_nudge(x = 0.8))
flipper-length_body-mass_scatter_position_nudge_label
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(island_means, aes(x = mean_flipper, y = mean_mass)) + geom_point(size = 4) + geom_label(aes(label = island), position = position_nudge(y = 1))
bill-length_bill-depth_scatter_annotate_rect
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point() + annotate("rect", xmin = 40, xmax = 50, ymin = 15, ymax = 19, fill = "yellow", alpha = 0.3)
bill-length_bill-depth_scatter_annotate_text
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point() + annotate("text", x = 45, y = 17, label = "Overlap region", size = 4, colour = "darkred")
bill-length_bill-depth_scatter_annotate_segment
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm, colour = species)) + geom_point() + annotate("segment", x = 50, xend = 47, y = 20, yend = 18, colour = "black", arrow = arrow(length = unit(0.3, "cm")))
species_count_pie_coord_polar
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = "", fill = species)) + geom_bar() + coord_polar(theta = "y")
species_count_pie_coord_polar_scale_fill_manual
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = "", fill = species)) + geom_bar() + coord_polar(theta = "y") + scale_fill_manual(values = c(Adelie = "#E69F00", Chinstrap = "#56B4E9", Gentoo = "#009E73")) + theme_void()
bill-length_species_boxplot_font_size_axis
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = species, y = bill_length_mm)) + geom_boxplot() + theme(axis.text = element_text(size = 14), axis.title = element_text(size = 16))
flipper-length_body-mass_scatter_font_size_title_legend
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, colour = species)) + geom_point() + labs(title = "Flipper Length vs Body Mass") + theme(plot.title = element_text(size = 18), legend.title = element_text(size = 12))
bill-length_species_mean_bar_stat_identity_nudge_label_scale_fill_manual
The palmerpenguins dataframe can be made available in R by calling `library(palmerpenguins)`. The dataframe is named `penguins`. It has the following factor columns: species, island, sex. It has the following numeric columns: bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g, year. The palmerpenguins and gg...
ggplot(mean_bill, aes(x = species, y = mean_bill_length, fill = species)) + geom_bar(stat = "identity") + scale_fill_manual(values = c(Adelie = "#E69F00", Chinstrap = "#56B4E9", Gentoo = "#009E73")) + geom_text(aes(label = round(mean_bill_length, 1)), position = position_nudge(y = 0.5)) + theme(axis.title = element_tex...

ggeval

Prompt/answer pairs to evaluate plot construction with the R library ggplot2.

The ggplot2 plotting library is relatively simple to use and often provides only one obvious method to construct a given plot. Writing well-formed ggplot2 code is an achievable task for small language models running on CPU-only machines. This dataset contains ggplot2 prompt/answer pairs of varying complexity for the purpose of evaluating small language models on their ability to write well-formed ggplot2 code.

An associated evaluation pipeline is available at: https://github.com/pvelayudhan/ggeval

Downloads last month
39