Re: [R] how to get a numeric vector?

2020-10-04 Thread John Fox
Dear vod vos, On 2020-10-04 6:47 p.m., vod vos via R-help wrote: Hi, a <- c(1, 4) b <- c(5, 8) a:b [1] 1 2 3 4 5 Warning messages: 1: In a:b : numerical expression has 2 elements: only the first used 2: In a:b : numerical expression has 2 elements: only the first used how to get: c(1:5,

[R] how to get a numeric vector?

2020-10-04 Thread vod vos via R-help
Hi, a <- c(1, 4) b <- c(5, 8) a:b [1] 1 2 3 4 5 Warning messages: 1: In a:b : numerical expression has 2 elements: only the first used 2: In a:b : numerical expression has 2 elements: only the first used how to get: c(1:5, 4:8) Thanks. __

Re: [R-es] Leyenda gráfico combinado

2020-10-04 Thread Carlos Ortega
Hola, Usando el paquete que comentaba y cogiendo el data.frame con el paquete "datapasta"... He aplicado un ajuste polinómico de grado 3. # library(data.table) library(ggplot2) datIn <- data.table( Individuo = c(1L,2L,3L,4L,5L,6L,7L,8L,9L,10L,

Re: [R-es] Leyenda gráfico combinado

2020-10-04 Thread Jimmy Erney Reyes Velasco
Lo siento creo que olvide poner los datos. mis datos son: Individuo Observada Estimada 1 200.210 180.75719 2 154.817 110.00147 3 514.919 455.28532 4 234.068 226.17628 5 232.191 218.58544 6 379.530 346.95982 7 297.466 309.05514 8 450.940 421.53012 9 317.840 276.81604 10 308.160 305.13638 11

Re: [R-es] Leyenda gráfico combinado

2020-10-04 Thread Carlos Ortega
Hola, Además de la alternativa de Emilio, como estás buscando incluir una fórmula y el valor de ajuste sobre el gráfico, quizás te interese usar las funcionalidades de este paquete: - *ggpmisc*: https://cran.r-project.org/web/packages/ggpmisc/vignettes/user-guide.html - Y en particular

Re: [R-es] Leyenda gráfico combinado

2020-10-04 Thread Emilio L. Cano
Hola, Tal vez tu problema esté en el rango del eje X. No puedo comprobarlo porque tu código no es reproducible, pero lo siguiente funciona: ggplot(data.frame(x=101:200, y = rnorm(10, 100)), aes(x, y)) + geom_bar(stat="identity") + annotate(geom = 'text',x = 0, y = 750,

Re: [R] Help in R code

2020-10-04 Thread Rui Barradas
Hello, This is cross-posted, you have posted the same question in SO[1]. Cross-posting is not well seen, post the question in one place and please wait a few days for an answer before posting here. [1]

[R] Help in R code

2020-10-04 Thread Faheem Jan via R-help
Hello , i am working in the functional time series using themultivariate time series data(hourly time series data). Sir  i am usingFAR model more than one order for which no statistical package is available inR, so for this i convert my data into functional form and obtained thefunctional

Re: [ESS] key bindings for ess-rutils-map

2020-10-04 Thread Alex Branham via ESS-help
On Sat 03 Oct 2020 at 19:52, Amit Ramon via ESS-help wrote: > Hi all, > > Section 11.11 of the ESS manual (online manual for version 18.10.3, > also in latest Info file) describes several key bindings for ESS > functions that are not defined in actuality for an R session. > > The keybindings

[R-es] Leyenda gráfico combinado

2020-10-04 Thread Jimmy Erney Reyes Velasco
Hola buenos días hice un gráfico combinado de líneas, puntos y barras en ggplot2, pero no sé cómo puedo poner la leyenda de eso gráfico para que me represente para las líneas con puntos los valores estimados por un modelo y observados. este es mi código: ggplot(MLM,aes(x=Individuo)) +