search for: twodash

Displaying 9 results from an estimated 9 matches for "twodash".

Did you mean: todas
2017 Oct 12
1
dual y-axis for ggplot
Hi John, You can try the following: override.linetype=c("twodash","solid") p <- ggplot(obs, aes(x = Timestamp)) p <- p + geom_line(aes(y = air_temp, colour = "Temperature", linetype ="Temperature")) p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity", linetype="Humidity")) p <- p + guides(c...
2017 Oct 12
2
dual y-axis for ggplot
...th a second y-axis is https://rpubs.com/MarkusLoew/226759 In this example, the author uses two colors for the two lines, but the line shapes are the same -- both are solid. Could each line have its own color as well as its own shape? For example, can I make the red line with the linetype "twodash", while the blue line with the linetype "solid"? For convenience, I copied the codes as follows. ######## p <- ggplot(obs, aes(x = Timestamp)) p <- p + geom_line(aes(y = air_temp, colour = "Temperature")) # adding the relative humidity data, transformed to ma...
2017 Oct 12
0
dual y-axis for ggplot
..."Temperature", linetype ="Temperature")) and p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity")) by p <- p + geom_line(aes(y = rel_hum/5, colour = "Humidity", linetype="Humidity")) and p <- p + scale_linetype_manual(values = c("twodash", "solid")), I will have two lines with different color and different line type, but I will have two legends (one with blue/red,solid, the other with two dash/solid, black ). How can I have only one legend with blue/two dash and red/solid? 2017-10-12 0:06 GMT-07:00 John <m...
2009 Jan 14
1
Help with Plot/Legend
Dear R-Users I have 2 questions: Firstly, If I create a matplot and legend for multiple vectors and then tag another vector on using matlines (e.g. a 'total' of all vectors), is there anyway to add the new line to the legend without recreating it? I have created the plot this way because I would like to define the lty and lwd for the 'total' vector so that it can be
2000 Feb 02
0
Bugs and comments. (PR#410)
Hi, Here are a few errors I found as well as a few comments. 1) In the man page of par: lty: The line type. Line types can either be specified as an integer (0=blank, 1=solid, 2=dashed, 3=dot- ted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings `"blank"', `"solid"', `"dashed"', `"dotted"' `"dotdash"', `"longdash"', or `"twodash"', where `"blank"' us...
2018 Jul 18
2
Legendas en una gráfica de ggplot2
...(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", size=1.2,linetype="solid")+ labs(x = expression(paste(theta)), y="Probabilidad")+ theme(axis.text=element_text(size=...
2018 Jul 18
2
Legendas en una gráfica de ggplot2
...t; 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", size=1.2,linetype="solid")+ >> labs(x = expression(paste(theta)), y="Probabilidad")...
2018 May 22
3
legend order in ggplot2
Hi, I'd like to graph three lines on ggplot2 and I intend the lines to be "solid", "dashed", and "dotted". The legend names are "name_b", "name_a", "name_c". I'd like to legend to present in the order: the "name_b" at the top, and "name_c" at the bottom. As a consequence, the legend is indeed in the order:
2011 Jun 12
2
Side by side scatter plots with specified regression lines
I am new and self taught in R, so please bear with me. I want to create two scatter plots side by side. The data set includes measurements from two different countries with 7 treatments over a timeline (x-axis). Problem 1 I want to have each plot to include the data from one of the countries with 7 regression lines of the treatments, but I do no know how to divide the data between them. This is