-
Notifications
You must be signed in to change notification settings - Fork 11
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
Plot data is dependent on device, causing errors and spurious new devices #20
Comments
Interesting, thanks for the report. This happens when you don't explicitly load the library(ggdendro)
library(rpart)
model <- rpart(Kyphosis ~ Age + Number + Start, method = "class", data = kyphosis)
ddata <- dendro_data(model) |
To do:
|
Hi Andrie, The problem is intermittent:
|
Hi Andrie, I think the problem is in the function This function calls the function I don't know why this error is intermittent, but when I put a default So it seems to be the problem. If you could check that in the code of the package, it would be great! Kind regards, DanielaV |
Thank you. This information was helpful. I have traced the problem to the following:
This reproduces the problem: library(rpart)
library(ggdendro)
model <- rpart(Kyphosis ~ Age + Number + Start, method = "class", data = kyphosis)
ddata <- dendro_data(model)
plot.new()
ddata <- dendro_data(model) Since the whole point of |
Hi Andrie, Thank you very much for fixing that and for your package. Do you think it is possible to not open a new device when the function dendro_data() is called. Thanks again. Kind regards, |
@DanielaVasco I opened a new issue #25 |
Dear Andrie, I continue receiving the same error message when I call the function Thanks, On Thu, Apr 14, 2016 at 11:51 PM, Andrie de Vries [email protected]
|
Are you using the dev branch? This isn't in master yet. |
I am just calling the function directly. Thanks |
How do you install the package at the moment? You have to install the development version from github using devtools, specifically the development branch (dev). Use |
Thanks Andrie, Now it is working :) On Mon, Apr 18, 2016 at 5:28 PM, Andrie de Vries [email protected]
|
Dear,
I'm trying to run the exactly example code about
rpart
from the Vignette and had this error in the functiondendro_data()
:Do you know what is the problem?
Regards,
Luis
The text was updated successfully, but these errors were encountered: