edzer / hexbin

Hexagonal binning routines and plotting methods
37 stars 11 forks source link

Issues installing on bigSur #21

Open firasm opened 3 years ago

firasm commented 3 years ago

Hello,

I am having an issue on macOS BigSur (11.1) with geom_hex() not working.

With this code:

ggplot(diamonds) +
    aes(x = carat,
        y = price) +
    geom_hex()

I just see a blank plot (other geoms work fine):

Screen Shot 2021-01-25 at 10 50 43 AM

It seems this might be an issue related to the hexbin package. I tried installing it in RStudio but got this error:

> install.packages('hexbin')
Installing package into ‘/usr/local/lib/R/4.0/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/hexbin_1.28.2.tar.gz'
Content type 'application/x-gzip' length 1066670 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

* installing *source* package ‘hexbin’ ...
** package ‘hexbin’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls  -fPIC  -g -O2  -c hbin.f -o hbin.o
clang: error: invalid version number in '-mmacosx-version-min=11.0'
make: *** [hbin.o] Error 1
ERROR: compilation failed for package ‘hexbin’
* removing ‘/usr/local/lib/R/4.0/site-library/hexbin’
Warning in install.packages :
  installation of package ‘hexbin’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/64/bfv2dn992m17r4ztvfrt93rh0000gn/T/RtmpGA5VvQ/downloaded_packages’