Skip to content

Commit 31f0b5a

Browse files
Made cm.colors.strong the default
1 parent 6b2f484 commit 31f0b5a

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

R/cf_4dim.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cf_4dim <- function(func,
6262
pts=NULL,
6363
axes=TRUE, key.axes, key.title,
6464
nlevels=20,
65-
color.palette=cm.colors,
65+
color.palette=cm.colors.strong,
6666
edge_width=.04, cex.var_names=1.3,
6767
bar=TRUE,
6868
bar_width=.2,

R/cf_grid_screen.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#' @param lines_only Should no fill be used, only contour lines?
2020
#' @param levels a set of levels which are used to partition the range of z. Must be strictly increasing (and finite). Areas with z values between consecutive levels are painted with the same color.
2121
#' @param nlevels if levels is not specified, the range of z, values is divided into approximately this many levels.
22-
#' @param color.palette a color palette function to be used to assign colors
23-
#' in the plot. Defaults to cm.colors. Other options include rainbow,
22+
#' @param color.palette A color palette function to be used to assign colors
23+
#' in the plot. Defaults to cm.colors.strong. Other options include rainbow,
2424
#' heat.colors, terrain.colors, topo.colors, and function(x) {gray((1:x)/x)}.
2525
#' @param col an explicit set of colors to be used in the plot. This argument overrides any palette function specification. There should be one less color than levels
2626
#' @param plot.title statements which add titles to the main plot.
@@ -74,7 +74,7 @@ cf_grid <-
7474
function (x = seq(0, 1, length.out = nrow(z)),
7575
y = seq(0, 1,length.out = ncol(z)), z, xlim = range(x, finite = TRUE),
7676
ylim = range(y, finite = TRUE), zlim = range(z, finite = TRUE),
77-
levels = pretty(zlim, nlevels), nlevels = 20, color.palette = cm.colors,
77+
levels = pretty(zlim, nlevels), nlevels = 20, color.palette = cm.colors.strong,
7878
col = color.palette(length(levels) - 1), plot.title, plot.axes,
7979
key.title, key.axes, asp = NA, xaxs = "i", yaxs = "i", las = 1,
8080
axes = TRUE, frame.plot = axes, bar=F, pts=NULL, reset.par=TRUE,

R/cf_highdim.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#' @param levels a set of levels which are used to partition the range of z.
2828
#' Must be strictly increasing (and finite). Areas with z values between
2929
#' consecutive levels are painted with the same color.
30-
#' @param color.palette a color palette function to be used to assign colors
31-
#' in the plot. Defaults to cm.colors. Other options include rainbow,
30+
#' @param color.palette A color palette function to be used to assign colors
31+
#' in the plot. Defaults to cm.colors.strong. Other options include rainbow,
3232
#' heat.colors, terrain.colors, topo.colors, and function(x) {gray((1:x)/x)}.
3333
#' @param col an explicit set of colors to be used in the plot.
3434
#' This argument overrides any palette function specification.
@@ -108,7 +108,7 @@ cf_highdim <- function(func, D, low=rep(0,D), high=rep(1,D),
108108
average=FALSE, average_reps=1e4,
109109
axes=TRUE, key.axes, key.title,
110110
nlevels=20, levels=pretty(zlim, nlevels),
111-
color.palette=cm.colors,
111+
color.palette=cm.colors.strong,
112112
col=color.palette(length(levels) - 1),
113113
edge_width=.04, cex.var_names=1.3,
114114
bar=TRUE,

man/cf_4dim.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cf_grid.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cf_highdim.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)