Re: [R] install.packages and package dependencies

2025-02-06 Thread Duncan Murdoch
I don't think install.packages() can do what you want. If you are specifying a URL, then install.packages() assumes it has no way to know where the other dependencies are supposed to come from. The typical way I install an unusual version of a package is to install the CRAN version first (ins

[R] install.packages and package dependencies

2025-02-06 Thread arilamstein
It appears that install.packages does not automatically install package dependencies when the package is installed via a URL. As an example, here is what I get when I attempt to install the latest ggplot2 tarball via its URL on CRAN: > install.packages(" https://cran.r-project.org/src/contrib/ggpl

Re: [R] pairs plot

2025-02-06 Thread Uwe Ligges
On 06.02.2025 04:32, Ranjan Maitra via R-help wrote: According to the help for pairs, the diag.panel function is supposed to take a panel.hist as in: pairs(USJudgeRatings[1:5], panel = panel.smooth, cex = 1.5, pch = 24, bg = "light blue", horOdd=TRUE, diag.panel = panel

Re: [R] pairs plot

2025-02-06 Thread Bert Gunter
Possibly because: panel.hist is not an existing R function -- you have to first create it so pairs() can use it. ?pairs shows you how in the Help examples, i.e. panel.hist <- function(x, ...) { usr <- par("usr") par(usr = c(usr[1:2], 0, 1.5) ) h <- hist(x, plot = FALSE) breaks <- h

[R] pairs plot

2025-02-06 Thread Ranjan Maitra via R-help
According to the help for pairs, the diag.panel function is supposed to take a panel.hist as in: pairs(USJudgeRatings[1:5], panel = panel.smooth, cex = 1.5, pch = 24, bg = "light blue", horOdd=TRUE, diag.panel = panel.hist, cex.labels = 2, font.labels = 2) Error: object 'pa