Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing rattle package in Mac

Tags:

macos

r

rstudio

I am trying to install rattle package in RStudio on my Mac but I am getting the following error.

The error is GTK version 2.8.0 required. I tried to install Gtk via Homebrew but still the same problem.

What am I missing?

enter image description here

like image 830
chintan s Avatar asked Apr 26 '26 01:04

chintan s


1 Answers

There is no need for using Rattle of fancyRpartPlot() in order to get more sightful and readable graphs, we can easily load rpart.plot into our workspace which is hassle-free and usually comes with main rpart package. Just need to call it and pass the model as its parameter to draw a pretty plot from model

library(rpart.plot)
rpart.plot(model)

enter image description here

like image 187
Mark K. Avatar answered Apr 27 '26 13:04

Mark K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!