 She was one of the seven children of Edward Swan (died 1893), a farmer and merchant, by his first wife, Euphemia Brown (died 1881).After her father's business failed, she attended school in Edinburgh, latterly at Queen Street Ladies College.Her father belonged to an Evangelical Union congregation, but she turned in adulthood to the Church of Scotland.