plots files fig and r