Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x axis overlaps labels #45

Closed
verajosemanuel opened this issue Jul 15, 2021 · 4 comments
Closed

x axis overlaps labels #45

verajosemanuel opened this issue Jul 15, 2021 · 4 comments

Comments

@verajosemanuel
Copy link

verajosemanuel commented Jul 15, 2021

When plotting bins, x-axis labels tend to overlap when figures are long.

A good fix would be to allow rotating labels to some degree or disabling scientific notation on plots.

bin <- binning_by(bindf, "target", "predicted")

plot(bin)

plot

@choonghyunryu
Copy link
Owner

@verajosemanuel,
Thank you so much, your advice.
I will fix the problem.

@choonghyunryu
Copy link
Owner

@verajosemanuel,

I added a 'rotate_angle' argument to plot.optimal_bins() that specifies the rotation angle of the x-axis labels. The default value for this argument is 0, which does not rotate labels.

Use it like following:
plot(bin, rotate_angle = 45)

It has already been applied to the github version. CRAN will be applied on the next submit.

Best Regards,
choonghyun

@verajosemanuel
Copy link
Author

Thanks a lot choonghyun!

@verajosemanuel
Copy link
Author

unable to install latest dev version:


** building package indices
** installing vignettes
   'EDA.Rmd' using 'UTF-8' 
   'Introduce.Rmd' using 'UTF-8' 
   'diagonosis.Rmd' using 'UTF-8' 
   'transformation.Rmd' using 'UTF-8' 
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'dlookr' in library.dynam(lib, package, package.lib):
 DLL 'colorspace' not found: maybe not installed for this architecture?
Error: loading failed
Ejecución interrumpida
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/joe/Documents/projectA/renv/library/R-4.0/x86_64-w64-mingw32/dlookr'
* restoring previous 'C:/Users/joe/Documents/projectA/renv/library/R-4.0/x86_64-w64-mingw32/dlookr'
Warning messages:
1: In untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
3: In i.p(...) :
  installation of package ‘C:/Users/joe/AppData/Local/Temp/RtmpUz09CB/file1444290ffd5/dlookr_0.5.0.tar.gz’ had non-zero exit status
> library(colorspace)

library colorspace is installed and available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants