Transparent equivalent of given color

后端 未结 5 1400
温柔的废话
温柔的废话 2020-12-23 19:11

I\'ve had this a few times, so here goes: I\'m making some plots which hold curves with estimates of a parameter given a tuning parameter.

Typically, I also have SDs

5条回答
  •  甜味超标
    2020-12-23 19:42

    Have you had a look at ?rgb?

    Usage:

    rgb(red, green, blue, alpha, names = NULL, maxColorValue = 1)

    An alpha transparency value can also be specified (as an opacity, so ‘0’ means fully transparent and ‘max’ means opaque). If alpha’ is not specified, an opaque colour is generated.

    The alpha parameter is for specifying transparency. col2rgb splits R colors specified in other ways into RGB so you can feed them to rgb.

提交回复
热议问题