adding linear model and nearest neighbor to same graph