Icon

R Graphics - Plotting means and error bars in R

KNIME and R Graphics - Plotting means and error bars in R

URL: ggplot2 - Bar charts https://ggplot2.tidyverse.org/reference/geom_bar.html
URL: Hub: more R Graphics with KNIME https://hub.knime.com/search?type=Workflow&tag=r,graphic&sort=best
URL: Meta Collection about KNIME and Python (to see how to set up a Miniconda environment) https://hub.knime.com/mlauber71/spaces/Public/latest/_knime_and_python_meta_collection~AvjrddXKOIoZYLV3
URL: Hub: more Python Graphics with KNIME https://hub.knime.com/search?type=Workflow&tag=python,graphic&sort=maxKudos
URL: Plotting means and error bars (ggplot2) http://www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_(ggplot2)/
URL: summarySE: Summarizes data https://www.rdocumentation.org/packages/Rmisc/versions/1.5.1/topics/summarySE
URL: forum entry https://forum.knime.com/t/alteryx-plot-of-means-and-test-of-means-in-knime/43765/4?u=mlauber71
URL: Medium Blog: KNIME and R — installation across operating systems — some remarks https://medium.com/p/6494a2a498cc
URL: Medium Blog: Exploring the Power of R Graphics with KNIME: A Collection of Examples https://medium.com/p/9241e033e4ac

Annotations and comments
  • KNIME and R Graphics - Plotting means and error bars in R https://forum.knime.com/t/alteryx-plot-of-means-and-test-of-means-in-knime/43765/4?u=mlauber71 adapted from: http://www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_(ggplot2)/
  • # https://rpubs.com/NotNikolas63500/ToothGrowth library(datasets) data(ToothGrowth) knime.out <- ToothGrowth # assign your data frame here
  • KNIME and R — installation across operating systems — some remarks https://medium.com/p/6494a2a498cc Exploring the Power of R Graphics with KNIME: A Collection of Examples https://medium.com/p/9241e033e4ac
  • "data_transformed.csv" summarySE Gives count, mean, standard deviation, standard error of the mean, and confidence interval (default 95%)
  • context.workflow.parent-path
  • path.separator.system length_parent_path= length(column("context.workflow.parent-path")) substr(column("context.workflow.parent-path"), length_parent_path-1, 1)
  • => paths
  • create /data/ folder if it does not exist
  • context.workflow.absolute-path context.workflow.path context.workflow.name
  • context.workflow.data-path
  • data-path
  • path variables
  • /data/from_knime_plot_means_error_bars.png
  • v_path_csv_file "data_transformed.csv"
  • create sample data
  • 2.560x1.440 PNG file
  • the columns have to be renamed to a standard in R
  • Basic text size, adapt if text to large or small
  • Generate stacked plot
  • keep only the columns for group value stack facet
  • X-Axis-Label label_x
  • X Axis Group x_axis
  • Group x_axis_group
  • Y Axis values (mean) y_axis_value
  • Title for Plot
  • Y-Axis-Label label_y
  • Title for Legend
  • v_path_csv_file
  • ToothGrowth.table

Nodes

Extensions

Links