Re: [R] Differentiate values in a plot by colour or symbol

2017-05-31 Thread Tobias Christoph
wuhu, the plot is running now;) I had to put three brackets instead of two at the end of the formula. Thank you! Am 30.05.2017 um 21:29 schrieb Ismail SEZEN: > >> On 30 May 2017, at 21:44, Tobias Christoph > > wrote: >> >> Okay;) >> >> First of all many thanks

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 21:44, Tobias Christoph wrote: > > Okay;) > > First of all many thanks to you, Ismail, that you really try to help me. I am > really not an expert with R and try to learn. > You’re welcome. > I just checked: All columns in my data frame are numeric. The range of years >

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Okay;) First of all many thanks to you, Ismail, that you really try to help me. I am really not an expert with R and try to learn. I just checked: All columns in my data frame are numeric. The range of years is from 2005 to 2016. Please find attached the result of "data.frame(data)". I also

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 21:23, Tobias Christoph wrote: > > Ahh, okay. > > I think now I understand what you exactly mean. But the plot is stil not > working /differentiate the dots by color. I used the following formula. > "plot(data$stations, data$revenue, xlab="stations", ylab="revenue", col =

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Ahh, okay. I think now I understand what you exactly mean. But the plot is stil not working /differentiate the dots by color. I used the following formula. "plot(data$stations, data$revenue, xlab="stations", ylab="revenue", col = findInterval(data$year, c(2005, 2010, 2015))" I think the proble

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 20:48, Tobias Christoph wrote: > > Hi Ismael, > > thanks for your quick reply. > > I was now able to esmitate two intervals with the "findInterval"-Function. > > x > [1,] 2005 1 > [2,] 2006 1 > [3,] 2007 1 > [4,] 2008 1 > [5,] 2009 1 > [6,] 2010 1 > [7,] 2011 2

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Hi Ismael, thanks for your quick reply. I was now able to esmitate two intervals with the "findInterval"-Function. x [1,] 2005 1 [2,] 2006 1 [3,] 2007 1 [4,] 2008 1 [5,] 2009 1 [6,] 2010 1 [7,] 2011 2 [8,] 2012 2 [9,] 2013 2 [10,] 2014 2 [11,] 2015 2 [12,] 2016 2 But I was

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 19:02, Tobias Christoph wrote: > > Hey Guys, > > I just try to differentiate certain values in my plot by colour or symbol. > > I have panel data with three dimensions (number of stations, revenue, > years). To integrate the third dimension (years) in the plot, I want to