## Graph Display area problem!

Expand Messages
• Hello, I have got a very different problem. I have a line graph with some very high peeks on y-axis which actually increase the size of the graph and reduce
Message 1 of 4 , Jul 16, 2007
• 0 Attachment
Hello,

I have got a very different problem. I have a line graph with some
very high peeks on y-axis which actually increase the size of the
graph and reduce the area which has the significant information making
it hard to interpret the graph. Following is the sample data of the
problem:

x y
1 3
2 5
3 5000
4 2
5 6
6 8000
7 1

in this sample data there are two high peeks (i.e. 5000 and 8000)
which makes the whole graph ugly. I dont want to put "NA" in place of
those high peeks because doing so will produce a wrong graph with
lines (2,5) to (4,2) and (5,6) to (7,1).

I need it such a way that I can limit the y-axis (max value 10 in this
case) so that it will display the peeks by making them invisible as
they run out of the ploting area (e.g. line going upwards from point
(2,5) till the max plotting range and then at another point coming in
downwards uptill the point (4,2) ).

I tried to decrease the yrange but it only limits the y-axis and tics
but draws the graph without any change with visible lines running out
of the y-axis range. (e.g y-axis ends with max-tic 10 but the lines
are drawn for points 5000 and 8000 also, outside the y-axis given range).

I tried to limit the pagesize but it ends the graph abruptly and
truncates the graph and y-axis which falls outside the page limit.

I dont know how to solve this problem and produce a decent looking

Best Regards,
Shuja
• Have you considered using a log scale for your Y axis? Josh Simons
Message 2 of 4 , Jul 16, 2007
• 0 Attachment
Have you considered using a log scale for your Y axis?

Josh Simons

On Jul 16, 2007, at 8:01 AM, sszabistian wrote:

Hello,

I have got a very different problem. I have a line graph with some
very high peeks on y-axis which actually increase the size of the
graph and reduce the area which has the significant information making
it hard to interpret the graph. Following is the sample data of the
problem:

x y
1 3
2 5
3 5000
4 2
5 6
6 8000
7 1

in this sample data there are two high peeks (i.e. 5000 and 8000)
which makes the whole graph ugly. I dont want to put "NA" in place of
those high peeks because doing so will produce a wrong graph with
lines (2,5) to (4,2) and (5,6) to (7,1).

I need it such a way that I can limit the y-axis (max value 10 in this
case) so that it will display the peeks by making them invisible as
they run out of the ploting area (e.g. line going upwards from point
(2,5) till the max plotting range and then at another point coming in
downwards uptill the point (4,2) ).

I tried to decrease the yrange but it only limits the y-axis and tics
but draws the graph without any change with visible lines running out
of the y-axis range. (e.g y-axis ends with max-tic 10 but the lines
are drawn for points 5000 and 8000 also, outside the y-axis given range).

I tried to limit the pagesize but it ends the graph abruptly and
truncates the graph and y-axis which falls outside the page limit.

I dont know how to solve this problem and produce a decent looking

Best Regards,
Shuja

• Try: clip: yes in your lineplot along with specifying the y range. -Dan ________________________________ From: ploticus@yahoogroups.com
Message 3 of 4 , Jul 16, 2007
• 0 Attachment

Try:

clip: yes

in your lineplot along with specifying the y range.

-Dan

From: ploticus@yahoogroups.com [mailto:ploticus@yahoogroups.com] On Behalf Of Joshua Simons
Sent: Monday, July 16, 2007 9:37 AM
To: ploticus@yahoogroups.com
Subject: Re: [ploticus] Graph Display area problem!

Have you considered using a log scale for your Y axis?

Josh Simons

On Jul 16, 2007, at 8:01 AM, sszabistian wrote:

Hello,

I have got a very different problem. I have a line graph with some
very high peeks on y-axis which actually increase the size of the
graph and reduce the area which has the significant information making
it hard to interpret the graph. Following is the sample data of the
problem:

x y
1 3
2 5
3 5000
4 2
5 6
6 8000
7 1

in this sample data there are two high peeks (i.e. 5000 and 8000)
which makes the whole graph ugly. I dont want to put "NA" in place of
those high peeks because doing so will produce a wrong graph with
lines (2,5) to (4,2) and (5,6) to (7,1).

I need it such a way that I can limit the y-axis (max value 10 in this
case) so that it will display the peeks by making them invisible as
they run out of the ploting area (e.g. line going upwards from point
(2,5) till the max plotting range and then at another point coming in
downwards uptill the point (4,2) ).

I tried to decrease the yrange but it only limits the y-axis and tics
but draws the graph without any change with visible lines running out
of the y-axis range. (e.g y-axis ends with max-tic 10 but the lines
are drawn for points 5000 and 8000 also, outside the y-axis given range).

I tried to limit the pagesize but it ends the graph abruptly and
truncates the graph and y-axis which falls outside the page limit.

I dont know how to solve this problem and produce a decent looking

Best Regards,
Shuja

• Thanks Dan! it worked. ... Behalf Of Joshua Simons ... range).
Message 4 of 4 , Jul 20, 2007
• 0 Attachment
Thanks Dan! it worked.

--- In ploticus@yahoogroups.com, "Daniel Wheeler" <dwheeler@...> wrote:
>
> Try:
>
> clip: yes
>
>
>
> in your lineplot along with specifying the y range.
>
>
>
> -Dan
>
>
>
> ________________________________
>
> From: ploticus@yahoogroups.com [mailto:ploticus@yahoogroups.com] On
Behalf Of Joshua Simons
> Sent: Monday, July 16, 2007 9:37 AM
> To: ploticus@yahoogroups.com
> Subject: Re: [ploticus] Graph Display area problem!
>
>
>
> Have you considered using a log scale for your Y axis?
>
>
>
> Josh Simons
>
>
>
> On Jul 16, 2007, at 8:01 AM, sszabistian wrote:
>
>
>
>
>
> Hello,
>
> I have got a very different problem. I have a line graph with some
> very high peeks on y-axis which actually increase the size of the
> graph and reduce the area which has the significant information making
> it hard to interpret the graph. Following is the sample data of the
> problem:
>
> x y
> 1 3
> 2 5
> 3 5000
> 4 2
> 5 6
> 6 8000
> 7 1
>
> in this sample data there are two high peeks (i.e. 5000 and 8000)
> which makes the whole graph ugly. I dont want to put "NA" in place of
> those high peeks because doing so will produce a wrong graph with
> lines (2,5) to (4,2) and (5,6) to (7,1).
>
> I need it such a way that I can limit the y-axis (max value 10 in this
> case) so that it will display the peeks by making them invisible as
> they run out of the ploting area (e.g. line going upwards from point
> (2,5) till the max plotting range and then at another point coming in
> downwards uptill the point (4,2) ).
>
> I tried to decrease the yrange but it only limits the y-axis and tics
> but draws the graph without any change with visible lines running out
> of the y-axis range. (e.g y-axis ends with max-tic 10 but the lines
> are drawn for points 5000 and 8000 also, outside the y-axis given
range).
>
> I tried to limit the pagesize but it ends the graph abruptly and
> truncates the graph and y-axis which falls outside the page limit.
>
> I dont know how to solve this problem and produce a decent looking