Displaying 3 results from an estimated 3 matches for "gray48".
2018 Jul 18
2
Legendas en una gráfica de ggplot2
...))
### Con b igual a 0.7
t=seq (-4, 4, by=0.01)
i=exp(t-0.7)/(1+(exp(t-0.7)))
### Con b igual a 2
t=seq (-4, 4, by=0.01)
u=exp(t-2)/(1+(exp(t-2)))
####unir los datos
b=c(0.3,2,-1,-2)
datos=cbind(l,o,i,u)
datos=data.frame(datos)
###Graficos
ggplot( )+
geom_line(aes(y = i, x=t), color="gray48", size=1.2, linetype="dashed") +
geom_line(aes(y = u, x=t), color = "gray48", size=1.2,linetype="twodash")+
geom_line(aes(y = o,x=t), color = "gray48",
size=1.2,linetype="longdash") +
geom_line(aes(y = l,x=t), color="gray48",...
2018 Jul 18
2
Legendas en una gráfica de ggplot2
...o
> # "wide" a "long"
> library(tidyr)
> # install.packages('tidyr')
> datos_long <- gather(datos, Curva, Valor, 2:5)
> datos_long
>
> ###Graficos
>
> ggplot(datos_long, aes(x = t, y = Valor, linetype = Curva)) +
> geom_line(color="gray48", size=1.2)+
> labs(x = expression(paste(theta)), y="Probabilidad")+
> theme(axis.text=element_text(size=14, face="bold"),
> axis.title=element_text(size=14))
>
>
> Como ves, datos_long ahora si que permite que asignes linetype a una
> varia...
2000 Feb 29
0
mapping of colornames into hsv: half way done
...696969",
"gray42", "#6B6B6B",
"gray43", "#6E6E6E",
"gray44", "#707070",
"gray45", "#737373",
"gray46", "#757575",
"gray47", "#787878",
"gray48", "#7A7A7A",
"gray49", "#7D7D7D",
"gray50", "#7F7F7F",
"gray51", "#828282",
"gray52", "#858585",
"gray53", "#878787",
"gray54", "#8A8A8A&q...