Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Three maps of Greenland side by side, all filled in dark green at the same map scale. Left, Web Mercator: Greenland is huge and fills its whole panel, drawn as 36.3 million km². Middle, Equal Earth: Greenland is small, flattened and sheared sideways, drawn as 2.2 million km². Right, Lambert azimuthal equal-area centered on Greenland: Greenland is the same small size with a natural-looking shape, also 2.2 million km². Title: Mercator draws Greenland 17 times too big.
Blog post image
library(tidyplots)

pca |>
  tidyplot(x = pc1, y = pc2, color = group) |>
  add_data_points() |>
  add_ellipse()
Photo, no description
Logo for the #TidyTuesday Project. The words TidyTuesday, A weekly data project from the Data Science Learning Community (dslc.io) overlaying a black paint splash.
Photo, no description
Two horizontal bars on a shared 0 to 100% track, titled "A divided crowd doesn't mean most people change their answers." The chart asks how often two answers to the same phrase pair differed across 18 CAPphrase pairs where the majority got 50 to 70% of first answers. When the same person was asked the pair again a few questions later, their two answers differed only 12.3% of the time (burgundy bar; 95% bootstrap interval 7.6% to 15.5%; 612 people re-asked). For two different people, each answering once, the chance of differing answers was 46.5% (stone bar; 95% bootstrap interval 45.1% to 48.1%; from 4,505 first answers). A note explains that this rate sits near 50% by design, because the pairs were chosen to split the crowd. Source: CAPphrase pairwise comparisons, Kucharski (2026).
Photo, no description
Map of central Uppsala, about 6 km across, showing the streets and bike paths colored by the distance along the network to the nearest pizza place. The 42 pizza places are black dots. The colors run from dark blue at 0 meters through amber at 500 meters to light gray at 1,000 meters or more. Dark blue patches surround each pizza place, amber fills most of the streets between them, and light gray streets are mostly at the edges of the map. About 83 percent of the street length in the view is within 1,000 meters of a pizza place, and about 41 percent is within 500 meters. A legend in the lower right shows the scale with ticks at 0, 250, 500, 750 and 1,000+. The title reads "Uppsala's streets and their nearest pizza". The subtitle reads "Distance in meters along streets and bike paths to the nearest pizza place". The caption reads "Source: OpenStreetMap · Graphic: Georgios Karamanis".
Photo, no description
The gratia hex logo has a large glowing pink lowercase g over the word gratia in rounded pink lettering. Cyan and magenta outlines surround the deep purple hexagon.
library("sdmTMB")
library("gratia")
library("mgcv")
library("ggplot2")

cod <- sdmTMB::pcod
cod$survey <- factor(cod$year)
mesh <- make_mesh(cod, c("X", "Y"), cutoff = 10)
fit <- sdmTMB(density ~ survey + s(depth, k = 6),
  data = cod, mesh = mesh, time = "year",
  spatiotemporal = "iid", family = delta_gamma(),
  control = sdmTMBcontrol(backend = "rtmb"))

p <- draw(fit, select = smooths(fit), wrap = FALSE,
  xlab = "Depth (m)")
p[[1]] <- p[[1]] + labs(subtitle = "Encounter log odds")
p[[2]] <- p[[2]] + labs(subtitle = "Log positive density")
patchwork::wrap_plots(p, ncol = 2)
library("gratia")
library("mgcv")
library("glmmTMB")

data("Owls")
fit <- glmmTMB(
  SiblingNegotiation ~ s(ArrivalTime, k = 5) +
    FoodTreatment + offset(log(BroodSize)) + (1 | Nest),
  ziformula = ~ s(ArrivalTime, k = 5) + FoodTreatment,
  family = poisson(), data = Owls
)

draw(fit, select = c("s(ArrivalTime)",
  "s.1(ArrivalTime)"), ncol = 2)
library("gratia")
library("mgcv")

set.seed(42)
d <- data.frame(x = runif(250), z = runif(250))
e <- rnorm(250)
d$y1 <- sin(2 * pi * d$x) + e
d$y2 <- cos(2 * pi * d$z) + 0.6 * e + rnorm(250)

fit <- GJRM::gjrm(list(y1 ~ s(x), y2 ~ s(z)),
  data = d, margins = c("N", "N"), model = "B")
draw(fit)
library("gratia")
library("mgcv")

d <- data_sim("additive", n = 400, n_cat = 4,
  dist = "ordered categorical", seed = 42)
fit <- gam(y ~ s(x0) + s(x1) + s(x2), data = d,
  family = ocat(R = 4), method = "REML")

qq_plot(fit, type = "surrogate", seed = 42)
library("gratia")
library("mgcv")

fit <- gam(count ~ spray, family = poisson(),
  data = InsectSprays, method = "REML")

appraise(fit, type = "dharma", n_dharma = 500,
  seed = 42)
library("gratia")
library("mgcv")

d <- data_sim("additive", n = 300, seed = 42)
fit <- gam(y ~ s(x0, k = 6), data = d,
  method = "REML")

b <- post_draws(fit, method = "mh", n_draws = 1000,
  chains = 4, burnin = 500, seed = 42)
draw(sampling_diagnostics(b), select = 1:2)
library("gratia")
library("mgcv")

set.seed(42)
d <- data.frame(x = runif(500, -1, 1))
d$z <- d$x + rnorm(500, sd = 0.25)
d$y <- sin(pi * d$x) + d$x * d$z +
  rnorm(500, sd = 0.2)

fit <- gam(y ~ te(x, z, k = c(6, 6)), data = d,
  method = "REML")
ale(fit, focal = "x", scale = "response",
  interval = "simultaneous", seed = 42) |>
  draw()
library("gratia")
library("mgcv")

fit <- gam(uptake ~ s(conc, k = 6) + Type + Treatment +
  s(Plant, bs = "re"), data = CO2, method = "REML")

variance_comp(fit, type = "terms", n_draws = 500,
  seed = 42) |>
  draw(type = "proportion", include_total = FALSE,
    flip = TRUE)
Load more