quadstat-8.x-1.x-dev/config/install/webform.webform.barplot_cont_tables.yml

config/install/webform.webform.barplot_cont_tables.yml
langcode: en
status: open
dependencies: {  }
open: null
close: null
weight: 0
uid: 1
template: false
archive: false
id: barplot_cont_tables
title: 'Bar Plot for Contingency Tables'
description: 'Plots a barchart in R'
category: ''
elements: "barplot_help:\n  '#type': processed_text\n  '#text': '<p>Please see the <a href=\"/app/barplot-contingency-tables\">full application</a> for additional options and documentation.'\n  '#format': full_html\ninline_data:\n  '#type': textarea\n  '#title': 'Inline Data'\n  '#placeholder': 'X,1,2,3'\n  '#format_items': comma\n  '#access_update_roles': {  }\nimage:\n  '#type': webform_image_file\n  '#title': Image\n  '#default_value': '-1'\n  '#format': custom\n  '#format_html': '{{ item.url|replace({''http'': ''https''}) }}'\n  '#format_text': '{{ item.url|replace({''http'': ''https''}) }}'\n  '#format_items': comma\n  '#access_create_roles': {  }\n  '#access_update_roles': {  }\noutput:\n  '#type': textarea\n  '#title': Output\n  '#default_value': 'No output was generated.'\n  '#access_create_roles': {  }\n  '#access_update_roles': {  }\nr:\n  '#type': textarea\n  '#title': R\n  '#required': true\n  '#default_value': 'print(paste0(\"[h2]Creating the Stacked Barplot[/h2]\"));print(paste0(\"[p]To create a single stacked barplot, we must first isolate the column we wish to plot. In our case, column[code] \", colnames(X), \"[/code] was chosen. The values in this row include: [code]\", paste(X[,1], collapse=\" \"), \".[/code][/p]\"));print(paste0(\"[p]Now, we will sum these values across the rows, [code]\", paste(row.names(raw), collapse = \" \"), \"[/code], to give us an idea of how far up on the y-axis we will need to go:[/p]\"));print(paste0(\"[p][code]\",paste(X[,1], collapse=\" + \"), \" = \",  sum(X[,1]), \"[/code].[/p]\"));print(paste0(\"[p]So we number our y-axis to [code]\", sum(X[,1]), \"[/code] as seen in the barplot below. You can make the barplot as wide as you like.[/p]\"));print(paste0(\"[p]We have a total of \", length(X), \" rows so we will have \", length(X), \" partitions. For this part, we will draw partitions at the following point(s): [code]\", paste(cumsum(head(X,length(X)-1)), collapse=\" \"), \".[/code] How did we get these point(s)? We sum each value in the [code]\", colnames(X), \"[/code] column with all the values before it. There are no numbers before the first value, [code]\", X[1], \"[/code], so we just add 0 to it. The second partition would be at [code]\", paste(head(X,2), collapse=\" + \"), \" = \", sum(head(X,2)), \"[/code]. We continue until we reach the end of the column.[/p]\"));print(paste0(\"[p]We then need to choose a color for the bins. This is optional but using a color can help identify partitions. You can see the finished bar plot below with a legend that describes the colors used. We also named the x-axis for the title of the column that we chose, [code]\", colnames(X), \"[/code][/p]\"));barplot(as.matrix(X), legend = row.names(raw), width = c(0.5), xlim = c(0,1));'\n  '#format': raw\n  '#format_items': comma\n  '#access_create_roles': {  }\n  '#access_update_roles': {  }\nv1:\n  '#type': number\n  '#title': V1\n  '#default_value': '-1'\n  '#autocomplete': 'off'\n  '#access_update_roles': {  }\n  '#min': '-1'\n  '#step': '1'\n  '#required': true\nx:\n  '#type': number\n  '#title': X\n  '#description': 'The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation&#39;s page.'\n  '#access_update_roles': {  }\n  '#access_view_roles': {  }\n  '#min': '1'\n  '#step': '1'\n  '#required': true\nshorten_option:\n  '#type': checkbox\n  '#title': Shorten\n  '#access_update_roles': {  }\npdf:\n  '#type': checkbox\n  '#title': PDF\n  '#default_value': '0'\n  '#access_update_roles': {  }\nlicense:\n  '#type': select\n  '#title': 'Analysis License'\n  '#default_value': no_license\n  '#options':\n    afl_3.0: 'Academic Free License v3.0'\n    apache_2.0: 'Apache License 2.0'\n    artistic_2.0: 'Artistic License 2.0'\n    bsd_2_clause: 'BSD 2-clause \"Simplified\" License'\n    bsd_3_clause: 'BSD 3-clause \"New\" or \"Revised\" License'\n    bsd_3_clause_clear: 'BSD 3-clause Clear License'\n    bsl_1.0: 'Boost Software License 1.0'\n    cc0_1.0: 'Creative Commons Zero v1.0 Universal'\n    cc_by_4.0: 'Creative Commons Attribution 4.0'\n    cc_by_sa_4.0: 'Creative Commons Attribution Share Alike 4.0'\n    cc_by-nc-sa_4.0: 'Creative Commons Attribution NonCommercial ShareAlike 4.0 International'\n    ecl_2.0: 'Educational Community License v2.0'\n    epl_1.0: 'Eclipse Public License 1.0'\n    eupl_1.1: 'European Union Public License 1.1'\n    gpl_2.0: 'GNU General Public License v2.0'\n    gpl_3.0: 'GNU General Public License v3.0'\n    agpl_3.0: 'GNU Affero General Public License v3.0'\n    isc: 'ISC License'\n    lgpl_2.1: 'GNU Lesser General Public License v2.1'\n    lgpl_3.0: 'GNU Lesser General Public License v3.0'\n    lppl_1.3c: 'LaTeX Project Public License v1.3c'\n    mit: 'MIT License'\n    mpl_2.0: 'Mozilla Public License 2.0'\n    ms_pl: 'Microsoft Public License'\n    ms_rl: 'Microsoft Reciprocal License'\n    ncsa: 'University of Illinois/NCSA Open Source License'\n    no_license: 'No license (All rights reserved)'\n    open_data: 'Open Data Commons Project'\n    open_data_public: 'Open Data Commons Public Domain Dedication and Licence'\n    open_gov_v1: 'Open Government License v.1'\n    open_gov_v2: 'Open Government License v.2'\n    osl_3.0: 'Open Software License 3.0'\n    postgresql: 'PostgreSQL License'\n    public_domain: 'Public Domain'\n    unlicense: 'The Unlicense'\n    world_bank: 'World Bank Terms of Use'\n    zlib: 'zlib License'\n  '#access_update_roles': {  }\nhtml:\n  '#type': webform_document_file\n  '#title': HTML\n  '#access_create_roles': {  }\n  '#access_update_roles': {  }\n  '#file_extensions': 'txt html'\npdf_file:\n  '#type': webform_document_file\n  '#title': 'PDF File'\n  '#wrapper_attributes':\n    class:\n      - 'fa fa-lg fa-file-pdf-o'\n  '#format': link\n  '#access_create_roles': {  }\n  '#access_update_roles': {  }\n  '#file_extensions': pdf\nshorten:\n  '#type': url\n  '#title': Shorten\n  '#access_create_roles':\n    - administrator\n  '#access_update_roles': {  }\nclear_analysis:\n  '#type': processed_text\n  '#title': Clear\n  '#access_update_roles': {  }\n  '#access_view_roles': {  }\n  '#text': '<input data-drupal-selector=\"edit-operation-clear-analysis\" id=\"edit-operation-clear-analysis\" name=\"op\" value=\"Clear\" class=\"button js-form-submit form-submit\" type=\"button\">'\n  '#format': full_html\n_x_:\n  '#type': textfield\n  '#title': $x$\n  '#title_display': inline\n  '#size': '7'\n  '#autocomplete': 'off'\n  '#format_items': comma"
css: ''
javascript: ''
settings:
  ajax: true
  ajax_scroll_top: form
  ajax_progress_type: ''
  ajax_effect: ''
  ajax_speed: null
  page: true
  page_submit_path: ''
  page_confirm_path: ''
  page_admin_theme: false
  form_title: both
  form_submit_once: false
  form_exception_message: ''
  form_open_message: ''
  form_close_message: ''
  form_previous_submissions: false
  form_confidential: false
  form_confidential_message: ''
  form_remote_addr: true
  form_convert_anonymous: false
  form_prepopulate: false
  form_prepopulate_source_entity: false
  form_prepopulate_source_entity_required: false
  form_prepopulate_source_entity_type: ''
  form_reset: false
  form_disable_autocomplete: false
  form_novalidate: false
  form_disable_inline_errors: false
  form_required: false
  form_unsaved: false
  form_disable_back: false
  form_submit_back: false
  form_autofocus: false
  form_details_toggle: false
  form_access_denied: default
  form_access_denied_title: ''
  form_access_denied_message: ''
  form_access_denied_attributes: {  }
  form_file_limit: ''
  submission_label: ''
  submission_log: false
  submission_views: {  }
  submission_views_replace: {  }
  submission_user_columns: {  }
  submission_user_duplicate: false
  submission_access_denied: default
  submission_access_denied_title: ''
  submission_access_denied_message: ''
  submission_access_denied_attributes: {  }
  submission_exception_message: ''
  submission_locked_message: ''
  submission_excluded_elements: {  }
  submission_exclude_empty: false
  submission_exclude_empty_checkbox: false
  previous_submission_message: ''
  previous_submissions_message: ''
  autofill: false
  autofill_message: ''
  autofill_excluded_elements: {  }
  wizard_progress_bar: true
  wizard_progress_pages: false
  wizard_progress_percentage: false
  wizard_progress_link: false
  wizard_progress_states: false
  wizard_start_label: ''
  wizard_preview_link: false
  wizard_confirmation: true
  wizard_confirmation_label: ''
  wizard_track: ''
  preview: 0
  preview_label: ''
  preview_title: ''
  preview_message: ''
  preview_attributes: {  }
  preview_excluded_elements: {  }
  preview_exclude_empty: true
  preview_exclude_empty_checkbox: false
  draft: none
  draft_multiple: false
  draft_auto_save: false
  draft_saved_message: ''
  draft_loaded_message: ''
  draft_pending_single_message: ''
  draft_pending_multiple_message: ''
  confirmation_type: message
  confirmation_title: ''
  confirmation_message: "<div id=\"quadstat-output\">\r\n[webform_submission:values:output]\r\n<img alt=\"Quadstat Image\" class=\"statistics_image\" src=\"[webform_submission:values:image]\" />\r\n</div>\r\n\r\n<div id=\"quadstat-html\"><span class=\"fa fa-file-code-o fa-lg\"></span> <a target=\"_blank\" href=\"[webform_submission:values:html:raw]\">HTML</a></div>\r\n\r\n<div id=\"quadstat-pdf\"><span class=\"fa fa-file-pdf-o fa-lg\"></span> <a target=\"_blank\" href=\"[webform_submission:values:pdf_file]\">PDF</a></div>\r\n\r\n<div id=\"quadstat-shorten\"><span class=\"fa fa-lg fa-link\"></span> <a target=\"_blank\" href=\"[webform_submission:values:shorten]\">[webform_submission:values:shorten]</a></div>"
  confirmation_url: '/webform/[webform:id]/submissions/[webform_submission:sid]'
  confirmation_attributes: {  }
  confirmation_back: true
  confirmation_back_label: ''
  confirmation_back_attributes: {  }
  confirmation_exclude_query: false
  confirmation_exclude_token: false
  confirmation_update: false
  limit_total: null
  limit_total_interval: null
  limit_total_message: ''
  limit_total_unique: false
  limit_user: null
  limit_user_interval: null
  limit_user_message: ''
  limit_user_unique: false
  entity_limit_total: null
  entity_limit_total_interval: null
  entity_limit_user: null
  entity_limit_user_interval: null
  purge: none
  purge_days: null
  results_disabled: false
  results_disabled_ignore: false
  token_view: false
  token_update: false
access:
  create:
    roles:
      - anonymous
      - authenticated
    users: {  }
    permissions: {  }
  view_any:
    roles:
      - anonymous
      - authenticated
    users: {  }
    permissions: {  }
  update_any:
    roles: {  }
    users: {  }
    permissions: {  }
  delete_any:
    roles: {  }
    users: {  }
    permissions: {  }
  purge_any:
    roles: {  }
    users: {  }
    permissions: {  }
  view_own:
    roles:
      - anonymous
      - authenticated
    users: {  }
    permissions: {  }
  update_own:
    roles: {  }
    users: {  }
    permissions: {  }
  delete_own:
    roles: {  }
    users: {  }
    permissions: {  }
  administer:
    roles: {  }
    users: {  }
    permissions: {  }
  test:
    roles: {  }
    users: {  }
    permissions: {  }
  configuration:
    roles: {  }
    users: {  }
    permissions: {  }
handlers: {  }
uuid: 04ff531c-87fe-4a19-b8db-70a32e034225

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc