Space and time resolved absorption spectroscopy of directly and indirectly driven expanding plasmas