pbreheny / visreg

Visualization of regression functions
http://pbreheny.github.io/visreg/
61 stars 18 forks source link

Bug in visregFactorPanel when partial = FALSE #113

Open raymondben opened 1 year ago

raymondben commented 1 year ago

visregFactorPanel with partial = FALSE gives a plot with the text "Error using packet nn object 'ind' not found" on each panel. It stems from: https://github.com/pbreheny/visreg/blob/master/R/visregFactorPanel.R#L31 The variable ind is defined when partial = TRUE (https://github.com/pbreheny/visreg/blob/master/R/visregFactorPanel.R#L18) but not when partial is FALSE (https://github.com/pbreheny/visreg/blob/master/R/visregFactorPanel.R#L16). This change was introduced in https://github.com/pbreheny/visreg/commit/f153e5cdaf1e492b083f81a231bc884c2585fe4b