Update trends.R

minor fixes in coding style