I don’t think this can be done, as the retention settings differ between graphite and pnp4nagios.
They use a different file structure, encoding and retention settings.
Using them together can be done, but you only can display one of them in icingaweb2 via their modules.
Also using both at the same time will use much more storage, as you have to keep both retention databases.