V2 is performed in accordance with the way the action represented by V1 is performed.
N is a source of information about how to perform V2.
学生は先生の言うとおりに、実験をしました。
The students conducted the experiment exactly the way their teacher told them to do.
地図にかいてあるとおりに、歩きました。
We walked as shown on the map.
地図のとおりに、歩きましょう。
Let's walk following the map.