Re: [R] [FORGED] Re: axis() after image.plot() does not work except if points() is inserted between

2017-07-30 Thread Marc Girondot via R-help
Le 28/07/2017 à 05:32, Paul Murrell a écrit : plot(1:10) mtext("margin-label", side=2, at=9, las=1, line=1, adj=0) par(mfg=c(1,1)) ## Only the text within the plot region is drawn mtext("margin-label", side=2, at=9, las=1, line=1, adj=0, col="red") It works also for axis(). Thanks a lot. Marc

Re: [R] Add Anova statistics in each figure

2017-07-30 Thread David Winsemius
> On Jul 30, 2017, at 11:28 AM, Kristi Glover wrote: > > Hi R Users, > > I created interaction plots in ggplot2 and was trying to add output of two > way ANOVA models, especially only interaction ( example treatment*control > F(XX, XX) = xxx, p = xxx) into figures, but i was not able to ad

Re: [R] greek letters do not work in expression

2017-07-30 Thread Uwe Ligges
There is no internationalization of help pages, only of messages. Best, Uwe On 30.07.2017 21:51, David Winsemius wrote: On Jul 30, 2017, at 8:25 AM, Uwe Ligges wrote: On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plo

[R] How to replace match words whith colum name of data frame?

2017-07-30 Thread Abraham Mathew
Try the stringr package. This should work chemical=c("basic", "alkalin", "alkali", "acid", " ph ", "hss") chemical_match <- str_c(chemical, collapse = "|") chemical_match concept_df$match[str_detect(concept_df$concept, chemical_match)] <- "chemical" concept_df > concept_df conc

Re: [R] greek letters do not work in expression

2017-07-30 Thread Rui Barradas
Hello, Inline. Em 30-07-2017 20:51, David Winsemius escreveu: On Jul 30, 2017, at 8:25 AM, Uwe Ligges wrote: On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) or the

Re: [R] How export data set (available in the package) from R?

2017-07-30 Thread Suzen, Mehmet
I also suggest you Hadley's optimized package for interoperating xls files with R: https://github.com/tidyverse/readxl https://cran.r-project.org/web/packages/readxl/index.html __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:/

Re: [R] greek letters do not work in expression

2017-07-30 Thread David Winsemius
> On Jul 30, 2017, at 8:25 AM, Uwe Ligges > wrote: > > > > On 30.07.2017 17:22, Milan Cisty wrote: >> Dear all, >> I appreciate suggestions for following problem. I wrote to RStudio: >> plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) >> or the same happen when I wrote: >> plot(c(1,20),c

Re: [R] problem in run cmsaf script

2017-07-30 Thread Jeff Newmiller
1) Very few attachment types are permitted on the R mailing lists. Study the Posting Guide and for best results put code and data within the body of your email. 2) This is not the debug-my-script mailing list, it is the R-help mailing list, which means helping you understand one or a few state

Re: [R] Kalman filter for a time series

2017-07-30 Thread Staff
Thanks David, that's the clue I needed. Since x monotonically increases, all I needed to do was: ssModel = SSModel( t ~ SSMtrend(degree=1, Q=matrix(NA)), H=matrix(NA), distribution="gaussian") On Sun, Jul 30, 2017 at 10:11 AM, David Winsemius wrote: > > > On Jul 30, 2017, at 5:10 AM, Spenc

Re: [R] Kalman filter for a time series

2017-07-30 Thread Staff
Exactly. I'm doing: x=c(1:length(t)) ssModel = SSModel( t~x, distribution="gaussian",H=NA) but it is not plotting the Kalman filter line and not giving any errors. I'm not sure what more the model needs? On Sun, Jul 30, 2017 at 9:17 AM, Roy Mendelssohn - NOAA Federal < roy.mendelss...@noaa.go

[R] problem in run cmsaf script

2017-07-30 Thread Nooshin Ahmadi via R-help
Hi I work with cmsaf package and have a script for prepare data in R. I run this script and have some error like this:Error in if (startdate < dates[1]) (dums <- 1) : missing value where TRUE/FALSE needed In addition: Warning messages: 1: running command 'tar.exe -tf "D:/CM SAF/ORD24552.tar"' h

Re: [R] greek letters do not work in expression

2017-07-30 Thread Marc Schwartz
> On Jul 30, 2017, at 10:22 AM, Milan Cisty wrote: > > Dear all, > I appreciate suggestions for following problem. I wrote to RStudio: > plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) > or the same happen when I wrote: > plot(c(1,20),c(1,20), xlab = expression(alfa)) > what happen is, tha

Re: [R] greek letters do not work in expression

2017-07-30 Thread Uwe Ligges
On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) or the same happen when I wrote: plot(c(1,20),c(1,20), xlab = expression(alfa)) Write "alpha", not "alfa". Best, Uwe Lig

[R] greek letters do not work in expression

2017-07-30 Thread Milan Cisty
Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) or the same happen when I wrote: plot(c(1,20),c(1,20), xlab = expression(alfa)) what happen is, that description under x label is exactly "alpha", not greek letter alf

Re: [R] Kalman filter for a time series

2017-07-30 Thread David Winsemius
> On Jul 30, 2017, at 5:10 AM, Spencer Graves > wrote: > > > > On 2017-07-29 11:26 PM, Staff wrote: >> I found an example at >> http://www.bearcave.com/finance/random_r_hacks/kalman_smooth.html > > That example is signed by "Ian Kaplan". There's a box at the bottom of > the page for y

Re: [R] Kalman filter for a time series

2017-07-30 Thread Roy Mendelssohn - NOAA Federal
> structSSM Is no longer part of KFAS. All you needed to do was: library(KFAS) ?KFAS and you would have seen that if you went to the index. A structural state space model is now built up from its components, much like in LM. Look at; ?SSModel -Roy > On Jul 29, 2017, at 9:26 PM, Staff w

Re: [R] Kalman filter for a time series

2017-07-30 Thread Spencer Graves
On 2017-07-29 11:26 PM, Staff wrote: I found an example at http://www.bearcave.com/finance/random_r_hacks/kalman_smooth.html That example is signed by "Ian Kaplan". There's a box at the bottom of the page for you to email him. shown below. But it seems the structSSM function has

Re: [R] [FORGED] How export data set (available in the package) from R?

2017-07-30 Thread Rolf Turner
On 30/07/17 15:47, Ted via R-help wrote: "Data set flchain available in the survival package". How can I get it (from R) as Excel file? Thanks! The best advice is *DON'T*!!! I.e. Don't use Excel. Ever. Unless you really *want* to create chaos and havoc, and let slip the dogs of war. c