我目前正在使用看起来像这样的数据集:
public class SkydropXApiResponse {
private String id;
private String type;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", include = JsonTypeInfo.As.EXTERNAL_PROPERTY)
@JsonSubTypes(value = {
@JsonSubTypes.Type(name = "parcels", value = SkydropXParcel.class),
@JsonSubTypes.Type(name = "rates", value = SkydropXQuotation.class),
@JsonSubTypes.Type(name = "addresses", value = SkydropXAddress.class),
@JsonSubTypes.Type(name = "labels", value = SkydropXLabel.class),
@JsonSubTypes.Type(name = "shipments", value = SkydropXShipment.class),
})
private SkydropXEntity attributes;
public String getId() { return id; }
public void setId(String id) { this.id = id; }
public String getType() { return type; }
public void setType(String type) { this.type = type; }
public SkydropXEntity getAttributes() { return attributes; }
public void setAttributes(SkydropXEntity attributes) { this.attributes = attributes; }
}
我想知道是否有办法使用GGAnimate创建交互式箱线图,也许与此类似:https://community.rstudio.com/t/trying-to-create-animated-bar-plot-with-sliding-bars-that-overtake-each-other/46528。我知道如果我可以按月汇总数据,则可以执行此操作,但是可以在一段时间内每天进行一次。例如,假设我要查看在2020-04-03和2020-08-01之间的时间段内价值最高的前4个县。我最近查看的所有示例都使用年或月。我想知道是否每天都有这种方法。