second is there an easy way to plot discrete functions with lines - f(n) = f(1) = 1, f(2) = 2, ... f(10) = 10; I want a series of vertical lines of varying height at 1, 2, ...10.

is there a function to find the maximum of a function that I'm to plot, so A can set the limits of the graph based on the the min.max ( function is defined by random parameters, so each function is different.

thanks