Hi,
This morning, I tried to visualize 'flights' data from nycflights13 package using ggplot. It didn't seem to be working perfectly, it shows something like this in the environment window "Large gg( 9 elements, 48.7 MB)".
It just keeps happening on and off with other datasets too. Not really sure what it means and how to get it fixed. I'll appreciate if somebody could help with it. Thanks!!
Can you post your code and sessionInfo() here, please?
Hi, I haven't got the same code, atm, but I've got similar issues with diamonds dataset. Here's the exact code I used to create ... :
diamonds <- diamonds %>%
ggplot(aes(carat, price))+ geom_bin2d()
furthermore, I can't install or load in 'hexbin' package either. It says "install.packages(hexbin)
Error in install.packages : object 'hexbin' not found"
We really need more information
At the veery least we need your complete set of errer messages.
However the complete code and some sample data would likely be useful.
See this on how to make a reproducible example (reprex) for some suggestions
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
AlexisW
January 27, 2022, 12:52am
6
Just an idea: try without saving in a variable:
diamonds %>%
ggplot(aes(carat, price))+ geom_bin2d()
Or alternatively, save in a variable, then call this variable:
plot_diamonds <- diamonds %>%
ggplot(aes(carat, price))+ geom_bin2d()
plot_diamonds
Try with quotes:
install.packages("hexbin")
system
Closed
February 17, 2022, 12:53am
7
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.