Skip to content

Commit

Permalink
Use linewidth instead of size for geom_line
Browse files Browse the repository at this point in the history
  • Loading branch information
asardaes committed Jun 22, 2024
1 parent 53fd56c commit 3c13018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions R/S4-TSClusters-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ setMethod("predict", methods::signature(object = "TSClusters"), predict.TSCluste
#' via the ellipsis (`...`).
#'
#' Otherwise, the function plots the time series of each cluster along with the obtained centroid.
#' The default values for cluster centroids are: `linetype = "dashed"`, `size = 1.5`, `colour =
#' "black"`, `alpha = 0.5`. You can change this by means of the ellipsis (`...`).
#' The default values for cluster centroids are: `linetype = "dashed"`, `linewidth = 1.5`,
#' `colour = "black"`, `alpha = 0.5`. You can change this by means of the ellipsis (`...`).
#'
#' You can choose what to plot with the `type` parameter. Possible options are:
#'
Expand Down Expand Up @@ -673,7 +673,7 @@ plot.TSClusters <- function(x, y, ...,
if (length(list(...)) == 0L)
gg <- gg + ggplot2::geom_line(data = dfcm[dfcm$cl %in% clus, ],
linetype = "dashed",
size = 1.5,
linewidth = 1.5,
colour = "black",
alpha = 0.5)
else
Expand Down
3 changes: 2 additions & 1 deletion man/tsclusters-methods.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c13018

Please sign in to comment.