Comments (7)
Thanks for the report! I'm not too familiar with how VSCode displays plots; do you have any idea what graphics device is used to display plots interactively?
from ggplot2.
I'm not very familiar with the technical background, either. I know that you can use the httpgd-package to display plots in R (see also https://nx10.github.io/httpgd/articles/b01_vscode.html), and that's what I have installed, too.
from ggplot2.
This remains a grid bug, not a ggplot2 bug. Sadly it has proven quite elusive to figure out why it happens but it has to do with some invalidation of the plot state in interactive devices
from ggplot2.
Ok. I was just curious because I realized this error just recently, after the ggplot 3.5.0 release. This could be a coincidence, but my guess was some kind of interaction between grid and the latest ggplot might lead to this issue.
from ggplot2.
It only seems to occur when the plot-window is not yet created. Once we have the plot-pane open, this error doesn't seem to re-appear.
from ggplot2.
Here's a short video, not sure if this helps. But maybe this issue should be closed/transferred anyway?
grid_issue.mp4
from ggplot2.
Thanks - I am going to close it since it is not something on the ggplot2 side. I know @pmur002 is aware of the issue so maybe this will eventually get fixed.
There can be many reasons why it started appearing with the latest release of ggplot2. I think the output from ggplot is by far the most complex grobs that gets rendered in R so it is a great stress-test of grid. Small changes may stress grid in new ways, even if ggplot2 is not doing anything wrong
from ggplot2.
Related Issues (20)
- AsIs sometimes not preserved when computing geom parameters HOT 4
- Cryptic error when mis-specifying linetype HOT 6
- Version 3.5.0 or 3.5.1 cannot render a plot made with 3.4.4 HOT 2
- Standardising calls to `gpar()`
- Fill and color guides for factor with `drop=FALSE` don't show color. HOT 7
- `guide_coloursteps(show.limits = T)` produces strange lower limit HOT 1
- Warnings due to partial matching HOT 2
- Reproducible example for `position_jitter()` not working HOT 1
- geom_sf_label() returns an error HOT 3
- date_breaks and date_breaks minor don't check argument type HOT 2
- `scale_*_*` `labels` argument often doesn't work as expected with a function HOT 8
- geom_histogram produces wrong number of bins in special cases HOT 2
- x/ylim Arguments in coord_fixed Donβt Seem to Be Applied to Contours: HOT 1
- Feature request: allow adding aesthetics together HOT 2
- Adding bootstrap customization for stat_summary(fun.data="mean_cl_boot") HOT 1
- Have header font be part of theme specification HOT 2
- Unexpected error about center/boundary in `geom_histogram()` when `bins = 1`
- ggplotly stopped working with version 3.5.1 HOT 3
- geom_tile -- Option to Split Diagonal Tiles. HOT 2
- Default labs where geom when the aesthetic is in both the ggplot and geom_* call HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggplot2.