On 11-05-16 11:30 AM, Manuel Sp�nola wrote:
> Dear list members,
>
> I am making a plot with ggplot2 using stat_smooth as I did it before but
> now is telling me that it did not find the function ns. I did it before
> and everything was fine.
You probably forgot
library(splines)
?
>
>> dput(juntaranf)
> structure(list(ident = c(1L, 6L, 8L, 13L, 14L, 15L, 17L, 19L,
> 20L, 23L, 24L, 25L, 26L, 27L, 30L, 31L, 33L, 34L, 36L, 38L, 42L,
> 43L, 44L, 45L, 48L, 49L, 51L, 52L, 53L, 54L, 55L, 57L, 59L, 60L,
> 62L, 63L, 65L, 68L, 69L, 70L, 71L, 72L), Nombre = structure(c(41L,
> 19L, 30L, 58L, 18L, 29L, 42L, 21L, 9L, 52L, 15L, 50L, 5L, 6L,
> 57L, 69L, 11L, 1L, 16L, 64L, 55L, 25L, 26L, 56L, 14L, 28L, 71L,
> 70L, 39L, 4L, 27L, 24L, 23L, 7L, 13L, 38L, 37L, 44L, 36L, 2L,
> 43L, 10L), .Label = c("Afluente Peje", "Ajuntaderas", "Alemania",
> "Balsar ", "Bijagual 1", "Bijagual 2", "Boca Brava", "Boca Chica",
> "Boca Toma", "Brusmalis", "Cabagra", "Cajon", "Camaronera", "Ca�a Blancal",
> "Caracol", "Cataratas 1", "Cataratas 2", "Ceibo", "Chi0 Kicha",
> "Coli0s 1", "Coli0s 2", "Concepcion", "Coronado", "Cuatro Bocas ",
> "Curre 2", "Curre1", "Delicias", "Desfogue", "Dibujada", "El Tigre",
> "El Valle", "Estero Bocon", "Estero Caite", "Estero Guarumal",
> "Estero Muerto ", "Estero Seco", "Estero Zacate", "Estirahuevos",
> "Filadelfia", "Fortu0", "General Viejo", "Guagaral", "Hacienda",
> "Isla Violines", "Isla Viuda", "La Tinta", "Lagu0 La Danta",
> "Lagu0 Silencio", "Las Brisas", "Ocochovi", "Paraiso", "Paso La Tinta",
> "Paso Real 1", "Paso Real 2", "Paso Real 3", "Progreso", "Quebrada
> Veraguas",
> "Remolinos", "Rio Ca�as", "Rio Convento", "Rio Mosca", "Rio Pacuar",
> "Brusmalis", "Cabagra", "Camaronera", "Ca�a Blancal", "Caracol",
> "Cataratas 1", "Ceibo", "China Kich�", "Colinas 2", "Coronado",
> "Cuatro Bocas", "Curre 1", "Curre 2", "Delicias", "Desfogue",
> "Dibujada", "El Tigre", "Estero Seco", "Estero Zacate", "Estirahuevos",
> "Filadelfia", "General Viejo", "Guagaral", "Hacienda", "Isla Violines",
> "Ocochovi", "Paso La Tinta", "Paso Real 3", "Progreso", "Quebrada
> Veraguas",
> "Remolinos", "San Andr�s", "SPMI", "Tanque Oscilacion", "Tuberia
> + xlab("Proporci�n de �rea de bosque") + ylab("N�mero de especies") +
> theme_bw() + opts(axis.title.x = theme_text(size = 12, vjust = -0.5)) +
> annotate("text",x=0.1,y=28,label="Anfibios")
>> p1
> Error in eval(expr, envir, enclos) : could not find function "ns"
>
>
> Best,
>
> Manuel
>
>
> --
> *Manuel Sp�nola, Ph.D.*
> Instituto Internacional en Conservaci�n y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspi...@una.ac.cr <mailto:mspi...@una.ac.cr>
> mspin...@gmail.com <mailto:mspin...@gmail.com>
> Tel�fono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de r�o
> <https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
> --
> You received this message because you are subscribed to the ggplot2
> mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3OSHQACgkQc5UpGjwzenPZVACfVuHL+xTeAvQyiy5kpuDtu2it
sXkAoJF6kSYVuJn6bTVVY1Kn7MED4eCr
=2/El
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You probably forgot
On 11-05-16 11:30 AM, Manuel Spínola wrote:
> Dear list members,
>
> I am making a plot with ggplot2 using stat_smooth as I did it before but
> now is telling me that it did not find the function ns. I did it before
> and everything was fine.
library(splines)
?
>
>> dput(juntaranf)
> structure(list(ident = c(1L, 6L, 8L, 13L, 14L, 15L, 17L, 19L,
> 20L, 23L, 24L, 25L, 26L, 27L, 30L, 31L, 33L, 34L, 36L, 38L, 42L,
> 43L, 44L, 45L, 48L, 49L, 51L, 52L, 53L, 54L, 55L, 57L, 59L, 60L,
> 62L, 63L, 65L, 68L, 69L, 70L, 71L, 72L), Nombre = structure(c(41L,
> 19L, 30L, 58L, 18L, 29L, 42L, 21L, 9L, 52L, 15L, 50L, 5L, 6L,
> 57L, 69L, 11L, 1L, 16L, 64L, 55L, 25L, 26L, 56L, 14L, 28L, 71L,
> 70L, 39L, 4L, 27L, 24L, 23L, 7L, 13L, 38L, 37L, 44L, 36L, 2L,
> 43L, 10L), .Label = c("Afluente Peje", "Ajuntaderas", "Alemania",
> "Balsar ", "Bijagual 1", "Bijagual 2", "Boca Brava", "Boca Chica",
> "Boca Toma", "Brusmalis", "Cabagra", "Cajon", "Camaronera", "Caña Blancal",
> "Caracol", "Cataratas 1", "Cataratas 2", "Ceibo", "Chi0 Kicha",
> "Coli0s 1", "Coli0s 2", "Concepcion", "Coronado", "Cuatro Bocas ",
> "Curre 2", "Curre1", "Delicias", "Desfogue", "Dibujada", "El Tigre",
> "El Valle", "Estero Bocon", "Estero Caite", "Estero Guarumal",
> "Estero Muerto ", "Estero Seco", "Estero Zacate", "Estirahuevos",
> "Filadelfia", "Fortu0", "General Viejo", "Guagaral", "Hacienda",
> "Isla Violines", "Isla Viuda", "La Tinta", "Lagu0 La Danta",
> "Lagu0 Silencio", "Las Brisas", "Ocochovi", "Paraiso", "Paso La Tinta",
> "Paso Real 1", "Paso Real 2", "Paso Real 3", "Progreso", "Quebrada
> Veraguas",
> "Remolinos", "Rio Cañas", "Rio Convento", "Rio Mosca", "Rio Pacuar",
> "Brusmalis", "Cabagra", "Camaronera", "Caña Blancal", "Caracol",
> "Cataratas 1", "Ceibo", "China Kichá", "Colinas 2", "Coronado",
> "Cuatro Bocas", "Curre 1", "Curre 2", "Delicias", "Desfogue",
> "Dibujada", "El Tigre", "Estero Seco", "Estero Zacate", "Estirahuevos",
> "Filadelfia", "General Viejo", "Guagaral", "Hacienda", "Isla Violines",
> "Ocochovi", "Paso La Tinta", "Paso Real 3", "Progreso", "Quebrada
> Veraguas",
> "Remolinos", "San Andrés", "SPMI", "Tanque Oscilacion", "Tuberia
> + xlab("Proporción de área de bosque") + ylab("Número de especies") +
> theme_bw() + opts(axis.title.x = theme_text(size = 12, vjust = -0.5)) +
> annotate("text",x=0.1,y=28,label="Anfibios")
>> p1
> Error in eval(expr, envir, enclos) : could not find function "ns"
>
>
> Best,
>
> Manuel
>
>
> --
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspi...@una.ac.cr <mailto:mspi...@una.ac.cr>
> mspin...@gmail.com <mailto:mspin...@gmail.com>
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río
> <https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
> --
> You received this message because you are subscribed to the ggplot2
> mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3OSHQACgkQc5UpGjwzenPZVACfVuHL+xTeAvQyiy5kpuDtu2it
sXkAoJF6kSYVuJn6bTVVY1Kn7MED4eCr
=2/El
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2