inserted missing sqldf library initialization call
reformated charts 3& 4 legends