rarefaction curve

Hi all,
Can someone please tell me how I can plot a rarefaction curve on OTU based data as well as on Phylotype based data ?
Iam having hard time to get it done in R or Excel spread sheet. Should I include all 3 columns like this numsampled 1-calf10D1 lci-calf10D1 hci-calf10D1 OR what ?
I appreciate any response, thank y’all and have a good one

You would plot numsampled on the x-axis and the 1-calf10D1 column on the y-axis. The other two columsn are the 95% confidence interval for the rarefaction.