NAMESPACE added plot function