我正在尝试使用 R Plotly 更改瀑布图各个条形的颜色。更具体地说,第一个和最后一个栏,我希望它分别是蓝色和黄色。因此,在下图中,第 1 组必须为蓝色,第 2 组必须为黄色。
R Plotly Waterfall 图表似乎只能选择为增加、减少和总计条形图设置三种颜色。
这是用于生成上图的代码:
library(plotly)
df <- data.frame(Rank = 1:7, Variable = c("Group 1","A","B","C","D","E","Group 2"),
Value = c(10,2,2,2,1,1,20),
measure = c("relative","relative","relative","relative","relative","relative","total"),
colour = c("yellow","green","green","green","green","green","blue"))
df$Variable <- factor(df$Variable, levels = unique(df$Variable))
df$text <- as.character(round(df$Value,2))
df$Factor <- as.numeric(df$Variable)
plot_ly(df, name = "20", type = "waterfall", measure = ~measure,
x = ~Variable, textposition = "outside", y= ~Value, text =~paste0('$',text),
hoverinfo='none',cliponaxis = FALSE,
connector = list(line = list(color= "rgb(63, 63, 63)"))
) %>%
layout(title = …
Run Code Online (Sandbox Code Playgroud) 我使用 Amazon SES 处理交易电子邮件,并使用 WP SES 插件与我的 WordPress 集成。
对于我的一些 IP 以 开头的电子邮件,SPF 失败54.240.27
。这似乎是 Amazon SES IP。
我已将以下 SPF txt 添加到我的 DNS 中:v=spf1 include:_spf.google.com include:ofpad.com include:amazonses.com ~all
任何帮助是极大的赞赏。
更新: 我按照 architjn 的指示在 AWS 中添加了 MAIL FROM Domain,但问题仍然存在。
以下是 AWS 中实施 Mail From Domain 后 Gmail 发送的 DMARC。以下是该报告的人类可读版本:https://us.dmarcian.com/dmarc-xml/details/VANOJ4S6b8QGCinq/
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info>
<report_id>4375352491574064416</report_id>
<date_range>
<begin>1601078400</begin>
<end>1601164799</end>
</date_range>
</report_metadata>
<policy_published>
<domain>ofpad.com</domain>
<adkim>r</adkim>
<aspf>r</aspf>
<p>none</p>
<sp>none</sp>
<pct>100</pct>
</policy_published>
<record>
<row>
<source_ip>54.240.27.115</source_ip>
<count>9</count>
<policy_evaluated>
<disposition>none</disposition> …
Run Code Online (Sandbox Code Playgroud)