We apply s-SNOM and nano-FTIR to study plasmons in metal and graphene nanostructures for the development of ultracompact nanophotonic devices and their application, for example, in optoelectronics and sensing.