I agree with Antonio Encina. Eupatorium spp. are used as ornamentals in other parts of the world too. Nicolás Pérez would you please provide some more information about this plant?
This is probably Ageratina anisochroma (= Eupatorium anisochromum). Please, compare the description in Flora of Panama: http://biodiversitylibrary.org/page/28005592 . I myself have found it in this area some years ago, close to a bus stop down the road. More often the flowers are pure white, but according to Flora of Panama they can also be lavender.
On the basis of the Flora of Panama, cited by Franz Starlinger, it is clearly Ageratina anisochroma, as he proposed. It was considered to be part of a broadly circumscribed Eupatorium until Robinson and King split up this genus.
I do a little work on the Indian Asteraceae, and keep a very small idea about the Asteraceae of Costarica, but after observing the picture and matching the Herbarium specimen I become sure that Osman is correct, the given photograph is the photo of It is Ageratina anisochroma (Klatt) R.M.King & H.Rob of family Asteraceae.