Which direction is West Virginia from Virginia?

As the name implies, West Virginia was a western part of Virginia, the counties north and west of the Allegheny Mountains. The state is due north of the "dip" in western Virginia.
In 1861, the Union-supporting factions in these counties established their own government, and became a state in 1863.