英文: How to set the color value in a plot based on 2 conditions ggplot 问题 以下是代码的翻译部分: 我试图制作一个分组的柱状图。我...
跳过在 R 中的 Plotly 的 hovertemplate 中的 ‘trace0’。
英文: Skip 'trace0' from hovertemplate of plotly in R 问题 我有下面的plotly图,我想跳过在我创建的hovertemplate旁边...
在绘图函数中无法绘制点。
英文: points not plotting in plot function 问题 我尝试在栅格层的特定坐标上绘制点。 > head(coords_df) x y 1 66.5 66...
无法在R中安装torch。
英文: Unable to install torch in R 问题 我尝试在R中安装'torch'软件包以构建一些机器学习模型,但出现以下错误: > install.packages(&qu...
根据ID反转列
英文: Reverse Column based on ID 问题 我有一个包含一些重复ID的数据集(ID的频率不同)。还有一列显示了每个ID的第n次出现。我试图找到一种快速的方法来为每个ID创建一个...
在R中使用ggplot2创建条形图上的趋势线。
英文: Creating a trendline on a bar plot with ggplot2 in R 问题 我试图创建一个带有实心直线趋势线的条形图,但无法让趋势线显示出来。 我正在使用g...
如何根据特定列自动对数据框进行子集化并存储在单独的数据框中,在R中。
英文: How to automatically subset a dataframe based on certain columns and store in separate dfs in R ...
合并 R 中的列:相同数据,分开的列,同一文件,每行不同条件。
英文: Combining columns in R: same data, separate columns, same file, different conditions per row 问题 ...
添加一个因子水平到表中。
英文: Add a factor level to a table 问题 我已从数据框中的一列构建了一个列联表: > dat <- data.frame(x = c(1, 1, 3)) &...
可以使用lapply在R中更新多个数据集吗?
英文: Is it possible to update multiple datasets using lapply in R? 问题 我目前正在尝试通过向每个数据集添加新列来更新多个数据集。 我已...
298