Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

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 !


Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz