Resistive switching behaviour can be classified into digital and analog switching based on its abrupt and gradual resistance change characteristics. Realizing the transition from digital to analog switching in the same device is essential for understanding and controlling the performance of the devices with various switching mechanisms. Here, we investigate the resistive switching in a device made with strontium titanate (SrTiO3) nanoparticles using X-ray diffractometry, scanning electron microscopy, Raman spectroscopy, and direct electrical measurements. It is found that the well-known rupture/formation of Ag filaments is responsible for the digital switching in the device with Ag as the top electrode. To modulate the switching performance, we insert a reduced graphene oxide layer between SrTiO3 and the bottom FTO electrode owing to its good barrier property for the diffusion of Ag ions and high out-of-plane resistance. In this case, resistive switching is changed from digital to analog as determined by the modulation of interfacial resistance under applied voltage. Based on that controllable resistance, potentiation and depression behaviours are implemented as well. This study opens up new ways for the design of multifunctional devices which are promising for memory and neuromorphic computing applications.