Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- is there a way to show the contours as Log scale instead of linear scale?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

is there a way to show the contours as Log scale instead of linear scale?

Nov 12, 2015 2:32 PM
(4058 views)

Hi All, is there a way to show the contours as Log scale instead of linear scale?

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: is there a way to show the contours as Log scale instead of linear scale?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: is there a way to show the contours as Log scale instead of linear scale?

Hi, Ram!

Question: did you mean the axes, or the contours themselves? More generally, what do you mean?

Peter nailed the axes. But if you mean the contours, I think you may have a longer row to hoe.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: is there a way to show the contours as Log scale instead of linear scale?

hi ram.asra@gmail.com,

i am not sure what you are looking for but perhaps this can give you a starting point

dt = Open**(** "$SAMPLE_DATA/Hurricanes.jmp" **)**;;

// this produces the contures in linear scale

plot1 = dt << **Bivariate(** Y**(** :Latitude **)**, X**(** :Longitude **)**, Nonpar Density **)**;

// extract the density to the data table

plot1 << **(****Curve[1]** << **Save Density Quantile)**;

plot1 << **(****Curve[1]** << **color by density Quantile)**;

// transform the density as you wish in a new column

dt << **new column** **(**"Ln Density", formula **(**ln**(**:Density**)))**;

// plot the transformed density

dt << **Contour Plot(**

X**(** :Latitude, :Longitude **)**,

Y**(** :Ln Density **)**,

Show Data Points**(** **0** **)**,

Fill Areas**(** **0** **)**,

Label Contours**(** **0** **)**,

Transform**(** "None" **)**,

Specify Contours**(**

Min**(** -**7** **)**,

Max**(** -**1** **)**,

N**(** **7** **)**,

Contour**(** **1**, -**7**, -**5793511** **)**,

Contour**(** **2**, -**6**, -**8423637** **)**,

Contour**(** **3**, -**5**, -**10725064** **)**,

Contour**(** **4**, -**4**, -**12632256** **)**,

Contour**(** **5**, -**3**, -**12885662** **)**,

Contour**(** **6**, -**2**, -**13595764** **)**,

Contour**(** **7**, -**1**, -**14828355** **)**

**)**,

SendToReport**(**

Dispatch**(** **{}**, "Contour Legend", FrameBox, **{**Frame Size**(** **102**, **235** **)}** **)**

**)**

**)**;

// another plotting option - a mix of linear coloring and the log scale.

Scatterplot 3D**(**

Y**(** :Latitude, :Longitude, :Ln Density **)**,

Frame3D**(**

Set Grab Handles**(** **0** **)**,

Set Rotation**(** -**56.0113386746381**, -**13.7470705335584**, **1.38294617183857** **)**

**)**

**)**;

best,

ron

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: is there a way to show the contours as Log scale instead of linear scale?

The forum software changed this line:

// this produces the contures in linear scale

plot1 = DT << **Bivariate(** And**(** :Latitude **)**, X**(** :Longitude **)**, Nonpar Density **)**;

Change **And** to **Y** to get it to work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: is there a way to show the contours as Log scale instead of linear scale?