191_management_of_datesR proposes a special data type  for dates. It is important to use it since it make the creation of charts lot easier. Let’s illustrate it. This example is inspired from this webpage that provides lot of explanations.

First we create data. With the str function you can check the type of each column. Dates are recognized as factor.

191_management_of_dates_bad

 

 

 

We can plot it but the results we observe is quite disapointing.

191_management_of_dates

 

If we switch to a date format and add a little bit of pimpimg, it becomes a better chart!


Not what you are looking for ? Make a new search !

[mediatagger]


1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Justin Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Justin
Guest
Justin

thanks