\addplot[$linestyle, mark=$marker, mark options={scale=.8}, $color]
plot [error bars/.cd, y dir = both, y explicit]
table[y error minus index=2, y error plus index=3]{
$plot
};
\addlegendentry{$legend}

