Feynman-like diagrams compatible with duality. I: Planar diagrams