Comments (5)
Thanks for bringing this up. This is caused by a change in the latest released ggplot2. A couple of things to consider for a fix:
- The moment this is fixed, cowplot stops working with older versions of ggplot2. So this dependency needs to be recorded in the
DESCRIPTION
file. - We should make sure we find all occurrences in the code that can cause this problem, so we need to fix only once.
Also, a general comment: When reporting issues, it's most productive to try to come up with a minimal example that causes the problem. Minimal examples should definitely not depend on other packages or have all sorts of irrelevant, distracting code. Here, I believe the problem is caused by using certain cowplot themes, but I can't tell from the provided example.
from cowplot.
I see you provided a minimal example here: #189 (comment)
from cowplot.
Oh, I'll put it here
from cowplot.
A minimal example
library(ggplot2)
library(cowplot)
ggplot(mtcars) +
geom_point(aes(mpg, drat)) +
theme_cowplot()
Warning messages:
1: The `size` argument of `element_line()` is
deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the
cowplot package.
Please report the issue at
<https://github.com/wilkelab/cowplot/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to
see where this warning was generated.
2: The `size` argument of `element_rect()` is
deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the
cowplot package.
Please report the issue at
<https://github.com/wilkelab/cowplot/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to
see where this warning was generated.
from cowplot.
fixed by #189
from cowplot.
Related Issues (20)
- [Feature request] Align legend with the start and end of the axis
- Cannot convert object of class LayerInstanceLayerggprotogg into a grob?
- changing size of the second plot in plot_grid() HOT 2
- ggarange common.legend positioning overwritten
- No side effect from plot_grid when used inside a function returning an object
- get_legend doesn't match original position
- Blank plot using plot_grid with RNotebook
- Feature request: options for anchors of labels in plot_grid HOT 1
- Explanation of how align_plot, ggdraw, and draw_plot work together for dual-y-axis plots.
- `draw_image` only works when background themes are set to `ggplot2::element_blank()` HOT 1
- Aligning legends?
- plot_grid not working HOT 1
- Cowplot breaks dates? HOT 2
- Cowplot() plot_grid() squishing axes and legend
- Mix bold and plain text in `cowplot::draw_label`
- Labels in `plot_grid()` seemed not affected by `byrow` HOT 2
- Is geom_image (ggimage) not working anymore with Kaggle? HOT 1
- Shared legend feature stopped workin with ggplot2 v3.5.0 HOT 10
- Calling save_plot( ) non-interactively via Rscript creates empty Rplots.pdf file
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 cowplot.