Skip to content

geom_col does not display all bars at small widths #6377

Closed as not planned
Closed as not planned
@davidhodge931

Description

@davidhodge931

If this is impossible to fix, I wonder if there should be a warning at very narrow widths?

Seems dangerous..

library(tidyverse)
#> Warning: package 'purrr' was built under R version 4.4.3

tidyquant::tq_get("SGMO", get = "stock.prices") |> 
  as_tibble() |> 
  ggplot() +
  geom_point(aes(x = date, y = volume))
#> Registered S3 method overwritten by 'quantmod':
#>   method            from
#>   as.zoo.data.frame zoo

tidyquant::tq_get("SGMO", get = "stock.prices") |> 
  as_tibble() |> 
  ggplot() +
  geom_col(aes(x = date, y = volume), position = "dodge")

Created on 2025-03-23 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions