analytics plotting functionality