[R] legend question
Hi to all, I'm sorry for posting this question, I am sure I am missing something important but after reading the documentation I cannot find where the problem is. I want to add a legend to a figure. If I use a simple example drawn from the R Reference Manual such as, for instance: x - seq(-pi, pi, len = 65) plot(x, sin(x), type=l, col = 2) legend(x = -3, y = .9, legend text, pch = 1, xjust = 0.5) then everything works just fine. However, if I use other data such as, for instance: y-c(1960, 1965, 1970, 1975) z-c(1, 2, 3, 4) plot(y, z, type=l, col = 2) legend(x = -3, y = .9, legend text, pch = 1, xjust = 0.5) then the legend is not shown. Any hints? Thanks in advance, Emili __ R-help@stat.math.ethz.ch 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.
Re: [R] dpill in KernSmooth package
Hi Giagomo, I think it computes the bandwith. Anyway, have you thought about using lokerns insteado of KernSmooth? It computes local plug-in bandwiths (bandwith matrices) which perform better in many instances. Hope that helps, Ciao Emili At 11:07 21/7/2005 +0100, Giacomo De Giorgi wrote: Hi, just a quick question does dpill computes the bandwidth or half-bandwidth? The help says bandwidth, but in the literature there is often confusion between the bandwidth and half-bandwidth. thanks, Giacomo [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] opening RDB files
Hi all, I've recently upgraded to R version 2.1.1 and when trying to inspect the contents of many packages in the library (for instance library\MASS\R) I've realized wordpad, or the notepad, won't open them since they have *.RDB and *.RDX extensions which these editors cannot recognize. However, libraries in previous versions of R did not have these extensions and I could inspect the contents of each package without any trouble. I've been searching for this thread but did not find it. Thank you! Emili __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] bandwidths for bivariate density estimation
Hi, I am using the KernSmooth package to estimate nonparametrically bivariate density functions. However, it seems that the bandwidths (one for each co-ordinate direction) have to be selected manually. This does not apply for the univariate case, for which dpik (included in KernSmooth) uses up-to-date plug-in rules. Does anyone know about a package, or function, which estimates bandwidths for the BIVARIATE case, following, for instance, the plug-in methods suggested by Wand and Jones? I will appreciate your help a lot. Thanks, Emili References: Wand, M. P. and Jones, M. C. (1995). Kernel Smoothing. Chapman and Hall, London. [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] bandwidths for bivariate density estimation
Hi, I am using the KernSmooth package to estimate nonparametrically bivariate density functions. However, it seems that the bandwidths (one for each co-ordinate direction) have to be selected manually. This does not apply for the univariate case, for which dpik (included in KernSmooth) uses up-to-date plug-in rules. Does anyone know about a package, or function, which estimates bandwidths for the BIVARIATE case, following, for instance, the plug-in methods suggested by Wand and Jones? I will appreciate your help a lot. Thanks, Emili References: Wand, M. P. and Jones, M. C. (1995). Kernel Smoothing. Chapman and Hall, London. [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] RWinEdt
Hi, All do also have troubles. In my case, I get the following message: install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL) package 'RWinEdt' successfully unpacked and MD5 sums checked updating HTML package descriptions local({pkg - select.list(sort(.packages(all.available = TRUE))) + if(nchar(pkg)) library(pkg, character.only=TRUE)}) Error in firstlib(which.lib.loc, package) : couldn't find function lazyLoad In addition: Warning message: package RWinEdt was built under R version 2.0.0 Error in library(pkg, character.only = TRUE) : .First.lib failed Any help would be appreciated!!! Emili At 05:14 AM 10/8/2004, [EMAIL PROTECTED] wrote: Hi, I have troubles getting RWinEdt with the R2.0.0 Version startet. Do I have to install a different version of RWinEdt or WinEdt? I have RWinEdt 1.6.1 and WinEdt 5.3. Thanks Anna Hennig __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] RWinEdt
OK, now it's fine. Thanks, Emili At 05:50 PM 10/8/2004, Emili Tortosa-Ausina wrote: Hi, All do also have troubles. In my case, I get the following message: install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL) package 'RWinEdt' successfully unpacked and MD5 sums checked updating HTML package descriptions local({pkg - select.list(sort(.packages(all.available = TRUE))) + if(nchar(pkg)) library(pkg, character.only=TRUE)}) Error in firstlib(which.lib.loc, package) : couldn't find function lazyLoad In addition: Warning message: package RWinEdt was built under R version 2.0.0 Error in library(pkg, character.only = TRUE) : .First.lib failed Any help would be appreciated!!! Emili At 05:14 AM 10/8/2004, [EMAIL PROTECTED] wrote: Hi, I have troubles getting RWinEdt with the R2.0.0 Version startet. Do I have to install a different version of RWinEdt or WinEdt? I have RWinEdt 1.6.1 and WinEdt 5.3. Thanks Anna Hennig __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html