Store the returned value of partialPlot() in an object and do your own barplot. Read the "Value" section in the help page for partialPlot.
Andy From: Daudi Jjingo > > Hello, > > I need to draw a partial dependence bar graph. > My the my predictor vectors are continous and so is the > response variable. > > Iam using the partialPlot function of the randomForest > package. I get a line > graph. How can I edit it to get a bar graph instead? > > (partialPlot(randomForest object ,data-matrix, number of > predictor vectors, > "Temp")) > > -- > Daudi Jjingo > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Notice: This e-mail message, together with any attachme...{{dropped:10}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.