-
Notifications
You must be signed in to change notification settings - Fork 0
/
29-Interfaces.Rmd
83 lines (48 loc) · 2.16 KB
/
29-Interfaces.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Interfaces gráficas {#interfaces}
```{r , child = '_global_options.Rmd'}
```
Aunque la consola de R dispone de un editor básico de códido (script),
puede ser recomendable trabajar con un editor de comandos más cómodo y
flexible.
En los últimos años han surgido *interfaces gráficas* que permiten
realizar las operaciones más comunes a través de periféricos como el
ratón. Una lista de de estas interfaces puede ser encontrada en
[www.sciviews.org/SciViews-R](www.sciviews.org/SciViews-R)
## RStudio {#rstudio}
Un entorno de R muy recomendable es el **RStudio**,
[*http://rstudio.org*](http://rstudio.org):
![](images/RStudio-screenshot.png){width="50%"}
<!-- ![](images/rstudio.png){width="4.7625in" height="3.95in"} -->
Para instalarlo descargar el archivo de instalación de
[*http://rstudio.org/download/desktop*](http://rstudio.org/download/desktop).
## RCommander {#rcmdr}
`RCommander` es una de las interfaces más populares para `R`. Algunas de
sus ventajas son:
- Se distribuye también bajo licencia GPL de GNU
- Fácil instalación
- Numerosa documentación en castellano
- Adecuado para la iniciación en la Estadística
- Introduce a la programación de `R` al mostrar el código asociado a
las acciones de los menús.
![](images/Rcommander.png)
### Instalación de R-Commander
Por ejemplo, la
instalación de la interfaz gráfica R-Commander se puede hacer
directamente desde la ventana de consola tecleando
> install.packages("Rcmdr")
Otra posibilidad es seleccionar el menú `Paquetes` e
`Instalar paquetes...`
![](images/Rcommander1.png)
A continuación se abrirá una nueva ventana con todos los posibles
espejos, donde conviene seleccionar el espejo de Madrid.
Una vez elegido el espejo (figura de la izquierda) se seleccionará el
paquete `Rcmdr` (figura de la derecha).
![](images/Rcommander2.png)
El programa `R` realizará la correspondiente instalación y,
una vez finalizada, mostrará la pantalla de consola. Entonces se escribe
en la consola
>library(Rcmdr)
y se abrirá la siguiente ventana de R-Commander.
![](images/Rcommander3.png)
La ayuda sobre este paquete se obtiene con
>help(package="Rcmdr")